Just a few things to start with:
The comment and instruction don't really fit together
You'd only need
SHT31_Wire1 sht31; // this already calls the default constructor
You should not mix the datatypes here, but use uint32_t
all the way through and also rearrange the calculation/value check.
The background can be found here
Millis() and rollover tutorial
Try to reduce your use of String
where possible to avoid risk of heap fragmentation. As long you don't need the Steing class methods, C strings are safer.
If your LED gets stuck on a solid color, it's most likely the I2C connection hangs for some reason.
What value pull-up resistors are you using and to what voltage?