Let's talk about what a water sensor is! A water #sensor is typically a device that senses or detects the water levels. A water sensor is essentially used for the measurement of water level, detection of any leakage, monitor tanks, and water pump any many such similar activities. Through this article one can learn how to interface a water sensor with an #Arduino board in a very manageable way.
Apparatus Required:
These are the list of components used for the #interfacing purpose.
Water sensor:- A water sensor has three pins particularly VCC, ground, and analog output pins. The #hardware of a water sensor has 10 copper traces, 5 of them are for power traces, and the rest 5 of them are sense traces. The power and sense traces are placed alternately.
Arduino Board:- Arduino Board can read inputs such as light on a sensor, a finger on a button, or a Twitter message and convert it to an output such as activating a motor, turning on an LED, publishing something online. All of this can be done by sending a set of instructions to the microcontroller on the board by the use of the Arduino programming language.
Jumper wires:- Jumper wires are used for the connection purpose.
Circuit Diagram:- The circuit connections are as follows. VCC(positive terminal) is connected to the 8th pin of the Arduino board using a jumper wire. The ground pin of Arduino is connected to the ground of the water sensor, and lastly, the analog pin(output pin) of the sensor is connected to A(0) of the Arduino board.
Note:- The positive terminal of the sensor can also be connected to pin 5 of the Arduino board, but here it is connected to pin 8 so that whenever output values are desired only then then-current should be supplied to the sensor hardware. For the rest of the time, the current movement is stopped because as soon as the current flows through the sensor it gets electrified and starts to corrode. Basically to make the sensor more durable and prevention form corrosion.
Code:
Working
The image of the circuit when the switch is off.
When the switch is ON that is code is successfully uploaded to the sensor. The sensor in the case is coded in such a way that when it is immersed in water it shows the water level. In the serial #monitor initially, the sensor shows minimum values when it is not immersed in water. Once the sensor is made to sink in the water the serial monitor readings start to increase and reach a maximum level when the sensor is completely submerged in the water. In the same way, reading starts to decrease when the sensor is taken out of the water.
Note:- The sensor reading won't come to zero as it was in the starting position because the water droplet is still present on the sensor. To make the #reading zero one has to remove all the water droplets from the surface of the sensor.
Video description: -
Check out this project working video- Interfacing Water Sensor with Arduino | How Arduino Water sensor Work | Arduino Water Sensor Code
Learn Electronics. (Sept 8, 2020). "Interfacing Water/Rain Sensor with Arduino". https://www.youtube.com/watch?v=KcGZjaFDvOw
In this article, the water sensor is used for water level #measurement. Besides this water sensor can be used in the rainy season to detect rainfall, can be planted in a water tank as a water level alarm, to detect any leakage. It is also used as a precautionary measure for #submersible electronics.
See Also:
Order Electronics Projects
Want us to guide you through your project or make the project for you? Click on the button below or reach out to us via Call/WhatsApp at (+91) - 7600948607
You can -
Order Basic Electronics Projects
Order Embedded Systems Projects
Order IoT Projects
Order FPGA Projects
Order VLSI Projects
Order Image Processing Projects
Order Matlab Projects
Order TinkerCAD Projects
Order Proteus Projects
Click on the button below to fill out the project inquiry form -
Create Various Projects
Check out our Free Arduino Projects Playlist - Arduino Projects
Check out our Free Raspberry Pi Projects Playlist - Raspberry Pi Projects
Check out our Free TinkerCAD Projects Playlist - TinkerCAD Projects
Check out our Free IoT Projects Playlist - IoT Projects
Check out our Free Home Automation Projects Playlist - Home Automation Projects
Check out our Free NodeMCu Projects Playlist - NodeMCu Projects
Follow us -
Please do follow us i.e. #learnelectronicsindia to get daily updates about new blogs, videos, courses, products, offers, competitions, quizzes, and Internship Opportunities.
This article on interfacing water sensors with Arduino is a hidden treasure for anyone interested in electronics and DIY projects. The team at Learn Electronics India has done a remarkable job in providing both theoretical knowledge and practical implementation. Highly recommended for beginners and hobbyists.
Short and effective! LearnElectronics India never disappoints.