Arduino Nano IOT stops working

So... i´m not so new to Arduino anymore but my understanding in the language isn´t that good so the code I created for testing isn´t really efficient.
Also It creates multible problems.
First the code online runs about 2-3 min until it stops. Until I restart the arduino via RST Button or uploading the code once more. Then everything starts once again.
I´m working the first time with the Nano IOT and the I2C Bus. The Nano is connected to a Adrafruit RTC Clock, the Adrafruit Sensor BME 680, a Sparkfun keyboard and a 16x2 LCD screen. All parts have been tested on its own before and worked. But together they create the problem. is the Ram Storage full? How can I clean it or make the code more efficient?

Next day I wanted to try It one more time but now the Arduino doesnt show up anymore, until I press the Reset Button twice.

Code:
Home-Central.ino (9,1 KB)

Any Ideas or Solutions?
Thanks
Blacky

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.