AED 9.45
Description
The water detection sensor Module is a detector for water leaks, water levels, and rain. This is accomplished by exposing a series of parallel wires. The sensor traces have a 1 M Ohm weak pull-up resistor. The resistor will raise the value of the sensor trace to HIGH until a drop of water shorts the sensor to the grounded trace. The MCU can read analog output straightforwardly
Package Includes:
- 1x Water Level Sensor Module Red
Features:
- Product Name: Water level sensor
- Interface: Analog
- Arduino compatible interface
- Low power consumption
- High sensitivity
- Manufacturing Process: FR4 double spray tin
- Easy to connect to MCU
Description:
The water detection sensor Module is a detector for water leaks, water levels, and rain. This is accomplished by exposing a series of parallel wires. The sensor traces have a 1 M Ohm weak pull-up resistor. The resistor will raise the value of the sensor trace to HIGH until a drop of water shorts the sensor to the grounded trace. The MCU can read analog output straightforwardly, The more water the sensor is immersed in, the higher the output voltage in the signal pin. There are ten exposed copper traces on the sensor.
Principle of Work:
There are five power traces and five sense traces. These traces are parallelly interlaced, with one sense trace between every two power traces. When submerged, these traces are not connected unless they are bridged by water. The traces function as a variable resistor (similar to a potentiometer), with resistance varying with the water level.
The resistance change corresponds to the distance between the sensor's top and the water's surface. The resistance is proportional to the depth of the water: The greater the amount of water in which the sensor is immersed, the better the conductivity and the lower the resistance. The lower the conductivity, the higher the resistance, the less water the sensor is immersed in. The sensor generates an output voltage based on the resistance. We can determine the water level by measuring the voltage.
Pinout of the Board:
VCC | Powers the sensor (3V-5V) |
GND | Common GND |
S | Analog Signal Output |
Applications:
- water leaks, water levels, and rain.
The module's Ground and VCC pins must be connected to the Arduino Board's Ground and 5 volts pins, respectively, and the S pins to the Analog pin on the Arduino Board.
Led is connected to pin 6, The LED's brightness will vary depending on the water level detected by the sensor.
Water Sensor | Arduino |
VCC | 5V |
GND | GND |
S | A0 |
Library:
no library is needed.
Code:
#define ledPin 6 #define sensorPin A0 void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); digitalWrite(ledPin, LOW); } void loop() { unsigned int sensorValue = analogRead(sensorPin); if (sensorValue < 540) return; uint8_t outputValue = map(sensorValue, 540, 800, 0, 255); Serial.print(sensorValue); Serial.print(" "); Serial.println(outputValue); analogWrite(ledPin, outputValue); // generate PWM signal }
Technical Details:
- Working voltage: 5V/3.3V
- Working Current: <20ma
- Width of detection: 40mm×16mm
- Working Temperature: 10℃~30℃
- Output voltage signal: 0~4.2V
- Weight: 3g
- Size: 65mm×20mm×8mm
Resources:
Comparisons:
This module is a water detector that gives its output in a form of an analog signal it has no amplification circuit and no digital output if we compare it to the (Water Raindrops Detection Sensor 3.3-5v Double-Sided With Amplifier) we see that it measures the volumetric content of water inside the soil and gives us the moisture level as output. The module has both digital and analog outputs and a potentiometer to adjust the threshold level. so we see here that if we want a simple and inexpensive way to measure water we can use this module if we want a more sophisticated way with both digital and analog output its better to use the second choise.