

The Water Level Sensor is a device designed to detect and measure the level of water in a tank, reservoir, or other liquid-containing systems. It is commonly used in automation systems to control water pumps, prevent overflow, and monitor water levels in real-time. This sensor is ideal for applications such as water management systems, irrigation systems, and home automation projects.








| Pin Name | Description |
|---|---|
| VCC | Power supply pin. Connect to 3.3V or 5V DC. |
| GND | Ground pin. Connect to the ground of the circuit. |
| Signal | Output pin. Provides an analog voltage proportional to the water level. |
Wiring the Sensor:
Reading the Output:
Example Circuit:
// Water Level Sensor Example Code for Arduino UNO
// This code reads the analog output of the sensor and prints the water level
// to the Serial Monitor.
const int sensorPin = A0; // Connect the Signal pin of the sensor to A0
int sensorValue = 0; // Variable to store the sensor reading
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
float waterLevel = (sensorValue / 1023.0) * 100; // Convert to percentage (0-100%)
// Print the water level to the Serial Monitor
Serial.print("Water Level: ");
Serial.print(waterLevel);
Serial.println("%");
delay(500); // Wait for 500ms before the next reading
}
No Output or Incorrect Readings:
Unstable or Fluctuating Readings:
Sensor Not Detecting Water:
Q: Can this sensor be used with liquids other than water?
A: Yes, but the liquid must be conductive. Non-conductive liquids like oil will not work with this sensor.
Q: Is the sensor waterproof?
A: No, only the conductive traces are designed to be submerged. The rest of the sensor should remain dry.
Q: How do I adjust the sensitivity of the sensor?
A: Some models include a potentiometer for adjusting the digital output threshold. Turn the potentiometer to fine-tune the sensitivity.
Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor operates at both 3.3V and 5V. Ensure the output voltage is within the input range of your microcontroller.