First you need to supply power to the sensor.
Water level sensor arduino code.
The recommended power of the water level sensor is between 3 3v 5v.
Connecting a water sensor to an arduino is a great way to detect a leak spill flood rain etc.
Analog output will vary depending on the voltage provided to the sensor.
Water sensor brick is designed for water detection which can be widely used in sensing rainfall water level and even liquid leakage.
Let s hook the water level sensor up to the arduino.
Wiring water level sensor with arduino.
Once the circuit is built upload the following sketch to your arduino.
This is a great piece of intraductory code to help you learn how to use the arduino water level sensor in your own projects.
Vcc pin is the power supply pin for the sensor.
For that you can connect the vcc pin on the module to 5v on the arduino and gnd pin to ground.
Hi sir good afternoon i am trying to interface the water level sensor using arduino nano for harvesting the fish aquarium automatic water level detecting and filling the water below average of water but the tank depth was 45cm the sensor size only the 5 cm how to apply the same application using long height sensor or if any chance to increase the size of sensor please reply this question sir.
It can be used to detect the presence the level the volume and or the absence of water.
S signal pin is an analog output pin and will always be connected to the analog inputs pin in arduino.
This project will demonstrate how to build a water level monitor using an arduino nano a solu sl067 water level sensor and an indicator.