Connecting a water sensor to an arduino is a great way to detect a leak spill flood rain etc.
Water level sensor arduino code.
Once the circuit is built upload the following sketch to your arduino.
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.
First you need to supply power to the sensor.
This project will demonstrate how to build a water level monitor using an arduino nano a solu sl067 water level sensor and an indicator.
Let s hook the water level sensor up to the arduino.
The recommended power of the water level sensor is between 3 3v 5v.
For that you can connect the vcc pin on the module to 5v on the arduino and gnd pin to ground.
S signal pin is an analog output pin and will always be connected to the analog inputs pin in arduino.
Supplies power for the sensor.
Arduino water level code example serial console if you don t have or don t want and lcd character display in your project then this code will print the output of the water level sensor to your serial console.
Wiring water level sensor with arduino.
Analog output will vary depending on the voltage provided to the sensor.
It can be used to detect the presence the level the volume and or the absence of water.
Water level monitor project tutorial by newmc.