Arduino Uno Water Level Sensor
This project demonstrates how to use an Arduino Uno to detect the water level using a float switch. When the float switch is triggered by the presence of water, the Arduino turns on an LED to indicate a high water level. The digital output of the float switch is read by the Arduino to determine the water level.
Components Needed
- Arduino UNO
- Water Level Sensor
- Jumper Wires
Hardware Wiring Explanation:
1.Connect Water Level Sensor to Arduino Uno:
Connect the signal pin of the water level sensor to digital pin 2 on the Arduino Uno.
Connect the power (VCC) and ground (GND) of the water level sensor to the respective power and ground pins on the Arduino Uno.
Instructions
Circuit Setup:
Wire up the water level sensor to the Arduino Uno as per the circuit setup section.
Code Upload:
Open the Arduino IDE and create a new sketch.
Copy and paste the provided Arduino code into the sketch.
testing:
Upload the code to the Arduino Uno.
Open the serial monitor with a baud rate of 9600.
Observe the output indicating "Water detected" or "No water detected" based on sensor input.
Applications
Notes
Ensure the water level sensor is calibrated and positioned correctly for accurate detection.
Adjust sensor placement and sensitivity based on the specific application requirements.
Explore advanced water level sensors for additional features like analog output or extended detection ranges.