The device is supposed to connect to wifi, collect the readings of temperature/humidity, display them on the LCD screen, and then send the data to Firebase. The *** are in place of personal information. Any help would be appreciated.
When the Arduino UNO Rev 2 is connected via USB as the power supply, the code will upload and run. However, when the Ardunio is disconnected and then promptly connected via another power supply, i.e. 9V power supply via the adaptor, the program does not run. I have included the code below. Currently, there is the SHT31-D humidity and temperature sensor connected to the board, as well as, an LCD screen. Both are using have breakout boards for easier connection/wiring.
I am also having issues with powering the device. Currently, the sensor is using the 3.3V rail on the board to be powered and the LCD screen is using 5V on the board.