

The Water Level Sensor is a device designed to detect and measure the level of water in a tank, reservoir, or other container. It is commonly used in automation systems to monitor and manage water levels, prevent overflow, and trigger actions such as turning pumps on or off. This sensor is ideal for applications in home automation, agriculture, industrial systems, and water conservation projects.








The Water Level Sensor typically consists of a series of conductive traces that detect water contact and output an analog or digital signal based on the water level.
| Pin Name | Description |
|---|---|
| VCC | Power supply pin (3.3V to 5V DC). Connect to the positive terminal of the power source. |
| GND | Ground pin. Connect to the ground of the circuit. |
| SIG | Signal output pin. Outputs an analog voltage proportional to the water level or a digital high/low signal. |
Connect the Sensor:
Place the Sensor:
Read the Output:
Below is an example of how to use the Water Level Sensor with an Arduino UNO to read and display the water level:
// Define the analog pin connected to the SIG pin of the sensor
const int waterLevelPin = A0;
// Variable to store the sensor reading
int waterLevelValue;
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
}
void loop() {
// Read the analog value from the sensor
waterLevelValue = analogRead(waterLevelPin);
// Convert the analog value to a percentage (assuming 10-bit ADC)
float waterLevelPercentage = (waterLevelValue / 1023.0) * 100;
// Print the water level percentage to the Serial Monitor
Serial.print("Water Level: ");
Serial.print(waterLevelPercentage);
Serial.println("%");
// Add a short delay for stability
delay(500);
}
No Output Signal:
Inaccurate Readings:
Fluctuating or Noisy Output:
Sensor Corrosion:
Q: Can this sensor detect non-water liquids?
A: The sensor is designed for water detection. It may work with other conductive liquids, but accuracy and longevity may vary.
Q: Is the sensor waterproof?
A: The sensor is water-resistant but not fully waterproof. Avoid submerging the entire sensor or exposing it to water for extended periods.
Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor operates at 3.3V to 5V, making it compatible with 3.3V microcontrollers like the ESP32 or Raspberry Pi Pico.
Q: How do I extend the sensor's lifespan?
A: Clean the sensor regularly, avoid exposure to corrosive liquids, and apply a protective coating if necessary.