Page 1 of 1

esp32 + Soil Sensor

Posted: 29 Jun 2020, 17:41
by momo3000
Hallo,
i am tryng to use soil sensor. I have gor this model:
https://www.amazon.it/WINGONEER-igromet ... 757&sr=8-9

i have got 4 pins on the soil sensor board.
1- vcc (linked on 3.3 v of esp32)
2- gnd (linked on ground)
3- do (not linked because i work in analog)
4- ao (linked on gpio13)

this is devices screen
2020-06-29 (2).png
2020-06-29 (2).png (127.08 KiB) Viewed 8283 times
what is the result showed in the row? i can see 25, what is this %?
2020-06-29 (4).png
2020-06-29 (4).png (103.93 KiB) Viewed 8283 times
if i put the soil sensor in thw water i arrive at 25. i can't understand.........

is it correct or i am doing something wrong?
Thank you

Re: esp32 + Soil Sensor

Posted: 29 Jun 2020, 19:06
by TD-er
You have selected the Hall Effect sensor (is present on ESP32) instead of an analog input.
The Hall Effect sensor can measure a magnetic field.

Re: esp32 + Soil Sensor

Posted: 29 Jun 2020, 19:59
by momo3000
i changed in analog pin 13, and the result is 0!!!!
2020-06-29 (7).png
2020-06-29 (7).png (130.98 KiB) Viewed 8269 times
2020-06-29 (8).png
2020-06-29 (8).png (126.89 KiB) Viewed 8269 times

Re: esp32 + Soil Sensor

Posted: 29 Jun 2020, 21:10
by TD-er
As a test to see if the analog input is working, you may want to test with some simple resistors.
Or try to measure the voltage applied to the GPIO pin by the sensor.

Maybe you need to add a pull-up resistor?