Arduino keeps restarting (memory issue?) - DHT11 + Arduino IoT cloud

@runaway_pancake, thank you for your reply. unfortunately, it made no difference in the sketch. I am at a loss here since that library is needed to connect to the Arduino IoT Cloud, yes?