Reading I2C issue with WIFI

Schematics, Example Code and Q&A
chills
Posts: 1
Joined: Sat Dec 26, 2020 1:06 pm

Reading I2C issue with WIFI

Unread post by chills »

I've been working with my new ESP32 boards and I've encountered an issue with trying to read from a SHT31 sensor while connected to WIFI. I've got the sensor connected to pins 21 & 22 and can read Temperature and Humidity from the board to the serial monitor.
For troubleshooting I've tried the following all the below and they all work but as soon as try to read from the sensor while connected to WIFI it crashes. Sample code is attached.

Does anyone have any suggestions?

1- Connected to WIFI and send WIFI signal data to InfluxDb. WORKS
2- Connected to WIFI and send data from DHT22 to InfluxDb. WORKS
3- Not Connected to WIFI and read Temperate from SHT31. WORKS
3- Connected to WIFI and get Data from DHT22 and display on ESP32 web server. WORKS
Attachments
Influx_Cloud.txt
(3.37 KiB) Downloaded 759 times
Post Reply