Analog Water Sensor Test and Review
The Funduino analog water sensor is an inexpensive, easily obtainable sensor module with many use cases. I purchased mine from the Good-Module Ebay store for just under $1 USD. You can find these modules available from other sellers on Ebay as well with similar prices.
There are a lot of uses for this sensor module. It can be used to detect the presence or absence of water, accurately gauge the water surface level, or you can even accurately gauge the volume of water present by using a volume measurement device such as a measuring cup in conjunction with the analog water sensor module. This makes it the Funduino analog water sensor a versatile component! Be careful not to confuse this module with a digital boolean water sensor which will only return a true or false value rather than an integer.
Hooking up the module to an Arduino is simple. Connect the positive to 5v, the negative to ground on the Arduino, and the analogue out to one of the 5 analog pins on the Arduino Uno. This module can also be connected to 3v, so it is virtually compatible with every type of Arduino as well as many other development boards.
int h20 = 0;
void setup() {
pinMode(h20, INPUT);
Serial.begin(9600);
}
void loop() {
int i = analogRead(h20);
Serial.println(i);
delay(1000);
}
This sketch is set up to view the values (the integer i) returned by the sensor in the serial monitor. You can easily use this value to set triggers. For example in a project that I built using this sensor module, I have it set to switch off a water pump if i is less than 100. This protects my pump from operating while not fully submerged.
Some other projects you might consider this module for may be:
- Water leak detection
- Automatic plant watering
- Rain fall meter
If you utilize this sensor in a project that you want to show off, feel free to post a link in the comments!
Kevin,
Thank you for the demonstration. Now how can I connect this to a pump to turn on at a specific level then when the level reached a min turn off the pump after a pre set delay remove all water.
Please share programing and wire diagram.
Thank you
Brian