This is my first post in this forum. I bought my dad an NodeMCU (ESP8266) for Christmas last year so he can mess around with learning C++ and microcontrollers. He has a long history with programming back to the beginning of computers, but hasn’t touched it in a few decades.
His first project was to use a NodeMCU to read the open/close state of two garage doors and write the state with a timestamp to Blynk. We got this working months ago.
He recently decided he wanted to add temperature and humidity sensing to the code as well. We selected a SHT31-D temperature sensor breakout board from Adafruit (https://www.adafruit.com/product/2857). Using their sample code, he was able to read temp and humidity over I2C successfully and print it to the serial port.
He ran into a wall when he tried to merge the two pieces of code. For some reason, the merged code crashes the NodeMCU whenever it tries to read the temp or humidity. This did not happen with Adafruit’s sample code.
Is there some reason a NodeMCU/ESP8266 cannot communicate with Blynk at the same time as communicating over I2C? Why would this crash the NodeMCU?
Edit: Trying to figure out how to attach my code
Please excuse if the code is a bit messy. I am trying to let him figure out the troubleshooting on his own.
Appreciate any feedback you can provide!