October 24, 2019
Here is a snippet of code to use water sensor.
// Water Sensor + to Arduino 5V
// Water Sensor - to Arduino GND
// Water Sensor S to Arduino A5
void setup() {
Serial.begin(9600);
}
void loop() {
int resval = analogRead(5);
Serial.println(resval);
}