Page 1 of 1

esp32 with sensors

Posted: Tue Feb 25, 2020 7:37 pm
by Muznah9
Hi all,

I am working with esp32 and Arduino IDE, in my project there are two I2C sensors, the problem is that some times they don't return any value.
Let's say I have three different codes, the first one for the first sensor, the second one for another sensor, and the third one is the main code, it contains the codes for both sensors and more extra functions.

If I upload the main code, sensors don't return any values but, if I upload the first and the second codes and then upload the main code, it works fine. :(

Thanks in advance!
Best regards