I don't know if this question belong here or on electronics SE.
A manufacturer just sent me a personalize device which include an ESP-32 and a Water Sensor.
My problem is that I don't know how to retrieve the water sensor data (if there is water or not).
When I used my Arduino Nano and a Funduino Water Sensor, it was easy to retrieve the value because this sensor got 3 connectors (VCC, GND, Data), I just had to do a basic analogRead(DATA_PIN)
.
But now, as you can see on the diagram bellow, the water sensor is just composed of 2 wires. I presume that it will detect water when these two wires are going to be connected by water.
So, How to detect the presence of water in Arduino using only these 2 wires ?
What I tried :
- Analog Read on the pin GPIO33
- Digital Read on the pin GPIO33
- Try to use TOUCH_PAD with this pin using
touchAttachInterrupt(T8, callback, Threshold);
but callback was never called - Contact the manufacturer (He said that it works perfectly, he used touch_pad for testing but never used Arduino IDE, only ESP-IDF that I really don't know)
simulate this circuit – Schematic created using CircuitLab
EDIT:
This image represent the back of the device with the sensor, inner wire is directly connected to GND and outer wire is connected to GPIO_33. This is all, there is not hidden connectors or something else.