I’m creating a weather station with an esp32 (not one made by Seeed) to view its data on my website.
I would like to add a rain gauge with the Grove water level sensor. Connecting it via the I²C pins of the esp32 and it doesn’t work pretty well : sometimes the sensor wont be detected by the esp32, and sometimes (when it’s detected by the esp32), it send incorrect data.
I use the code on the Seeed wiki.
I tried to add pull-up resistors on the SCL and SDA pins but without success.
I, also, changed with a second sensor (same reference), and it didn’t changed the outcome. This is eliminating the sensor cause.
For information, I have a pressure sensor (BMP280) plugged on the same ESP32 with I²C bus and it works perfectly. So, I think I²C is working well also.
Thanks for your help!