
This is a microcontroller-based system designed to monitor water presence using a sensor and communicate wirelessly via Bluetooth. It includes visual indicators (LEDs) and a servo motor for responsive actions, all controlled by an Arduino UNO.
The Water Sensor is a device designed to detect the presence of water or measure moisture levels. It is commonly used in applications such as leak detection, water level monitoring, and soil moisture measurement. The sensor operates by detecting changes in conductivity when water comes into contact with its exposed electrodes. Its simplicity and versatility make it a popular choice for both hobbyist and professional projects.

This is a microcontroller-based system designed to monitor water presence using a sensor and communicate wirelessly via Bluetooth. It includes visual indicators (LEDs) and a servo motor for responsive actions, all controlled by an Arduino UNO.

This circuit is a flood management system that uses an Arduino UNO to monitor water levels, temperature, and humidity. It employs an HC-SR04 ultrasonic sensor for distance measurement, a DHT11 sensor for temperature and humidity, and displays the data on a 16x2 I2C LCD. Additionally, it includes a piezo buzzer and LEDs to provide alerts when water levels exceed a safety threshold.

This is a sensor and control system with remote communication capabilities. It monitors temperature, pH levels, and water levels, and controls a water pump based on the float switch status. Data can be accessed and the system can be controlled remotely via Bluetooth and GSM modules connected to two Arduino UNO microcontrollers.

This circuit monitors water pressure and flow using a Gravity Analog Water Pressure Sensor and a water flow sensor, interfaced with an Arduino UNO. The Arduino UNO processes the sensor data and communicates with an ESP8266 module for potential wireless data transmission, all powered by a 5V adapter.
Below are the key technical details of a typical water sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Operating Current | < 20mA |
| Output Type | Analog and Digital |
| Dimensions | ~40mm x 20mm x 8mm |
| Detection Area | Exposed PCB electrodes |
| Interface | 3-pin (VCC, GND, Signal) |
The water sensor typically has a 3-pin interface. Below is the pinout description:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V - 5V) |
| 2 | GND | Ground connection |
| 3 | Signal | Outputs an analog or digital signal based on water |
| presence or moisture level |
Connect the Sensor:
VCC pin to a 3.3V or 5V power source.GND pin to the ground of your circuit.Signal pin to an analog or digital input pin of your microcontroller (e.g., Arduino).Analog vs. Digital Output:
Example Circuit:
Below is an example of how to use the water sensor with an Arduino UNO:
// Water Sensor Example Code for Arduino UNO
// This code reads both analog and digital outputs from the water sensor
// and displays the results in the Serial Monitor.
const int analogPin = A0; // Analog pin connected to the sensor's Signal pin
const int digitalPin = 2; // Digital pin connected to the sensor's Signal pin
const int ledPin = 13; // LED pin to indicate water detection (optional)
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read analog value from the sensor
int analogValue = analogRead(analogPin);
// Read digital value from the sensor
int digitalValue = digitalRead(digitalPin);
// Print the values to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(analogValue);
Serial.print(" | Digital Value: ");
Serial.println(digitalValue);
// Turn on LED if water is detected (digital output is HIGH)
if (digitalValue == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
delay(500); // Wait for 500ms before the next reading
}
No Output from the Sensor:
Signal pin is correctly connected to the microcontroller.Inconsistent Readings:
Digital Output Not Triggering:
Analog Output Not Changing:
Q: Can the water sensor be submerged in water?
A: While the sensor can detect water, prolonged submersion may damage the electrodes. It is recommended to use it for short-term detection or in controlled environments.
Q: How do I protect the sensor from corrosion?
A: Apply a protective coating (e.g., conformal coating) to the non-detection areas of the sensor. Avoid coating the exposed electrodes.
Q: Can I use the water sensor with a Raspberry Pi?
A: Yes, the sensor can be used with a Raspberry Pi. Connect the Signal pin to a GPIO pin and use an ADC (Analog-to-Digital Converter) for analog readings.
Q: What is the maximum distance between the sensor and the microcontroller?
A: The distance depends on the quality of the wires and the environment. For best results, keep the distance under 1 meter to avoid signal degradation.