I have been using this project to measure sump (under ground) water tank water level with NodeMCU and ultrasonic sensor.
1) Calculates how many liters of water available in tank (Here we used rectangular tank)2) Calculates Percentage of water in tank
3) Calculates distance of water level in cm
4) Calculates distance of water level in feet
5) Shows historical record of water level in cm, percentage and in liters
6) Different types of Water Level Alerts by taking input from app
7) Reset All Alerts feature to reset one time alert flag
8) Water coming alert (doesn't works properly as sensor data fluctuates)
9) Wifi signal strength indicator
1) Blynk App
2) NodeMCU
3) Ultrasonic sensor (I used HCSRO4)
Open settings.h and change Bynk Auth code, Wifi settings, server settings and flow calibration.
5V/VCC to Vin
Trig to D6/12
Echo to D5/14
GND to GND
-
Download and install the Blynk Mobile App for iOS or Android.
-
Scan the QR code at the bottom of this page to clone the screenshot below, or create a new project yourself and manually arrange and setup the widgets.
-
Email yourself the Auth code.
-
Download this repo and copy the files in to your sketches directory. Open the sketch in Arduino IDE.
-
Go to the settings.h tab. This is where all the customisable settings are. You should be able to change almost everything from there before compiling.