This is a simple yet effective Arduino project that monitors the water level in a tank 🌊 using an ultrasonic sensor and sends the data to a Blynk app via WiFi 📶. The Blynk app allows you to view the water level in real-time 📊 and receive alerts 🚨 when the tank is running low on water.
- Arduino Uno
- HC-SR04 Ultrasonic Sensor
- Jumper Wires
- Breadboard
- Blynk App (Available on App Store and Play Store)
Connect the components as shown in the wiring diagram below:
To use this project, you will need to install the Blynk and NewPing libraries. Follow these steps to install the libraries:
- Open the Arduino IDE.
- Go to Sketch > Include Library > Manage Libraries.
- Search for "Blynk" and click on "Blynk by Volodymyr Shymanskyy". Click on "Install".
- Search for "NewPing" and click on "NewPing by Tim Eckel". Click on "Install".
- Download and install the Blynk app from the App Store or Play Store.
- Create a new account or log in if you already have an account.
- Create a new project and select "Arduino Uno" as the hardware model.
- Add a Gauge widget to the project and configure it to display the water level data from the Arduino.
- Open the Arduino IDE.
- Copy and paste the code from the
code/arduino.ino
file in this repository. - Replace the
auth
variable with your Blynk authentication token. - Select the correct board and port from the Tools menu.
- Upload the code to the Arduino.
- Connect the Arduino to power and to the WiFi network.
- Open the Blynk app and select the project you created.
- The water level should be displayed on the Gauge widget in real-time.
- You can receive alerts when the water level falls below a certain level by adding a Notification widget to the project and configuring it to send a push notification when the water level is low.
If you find any issues or have suggestions for improvements, feel free to create a pull request or submit an issue on this repository.
This project is licensed under the MIT License. See the LICENSE file for details.