Introduction: Arduino - LCD 20x4 Water LEVEL MONITOR HC SR04

Hello world! Today i made a Water Level Monitor with arduino and the HC-SR04. It is a pretty basic example on what you can do with the HC-SR04 Ultrasonic Sensor and shows you the centimeters that are left to fill the Water Tank. You can simply change the code and put if statements for certain values to trigger actions when the Water Tank is running out of water, like filling it and stop filling it automatically with a solenoid valve for example by using a relay.

Follow the next step for the code Schematic & parts list.

Step 1: Schematic Code & Parts List.

Picture of Schematic Code & Parts List.

Just wire it up like the schematic! Make sure that you have included these following 3 libraries.

  • LCD.h
  • LiquidCrystal_I2C.h
  • NewPing.h

Parts list!

  • Arduino uno
  • HC-SR04 Ultrasonic range Sensor
  • LCD2004 With I2C
  • Jumper wire set
  • Water tank or buckets to test (optional)

Good luck!

Follow me for more!


JedonT (author)2016-12-01

I made one like this but added code to calculate the volume in the tank so it can tell you how many gallons are in there, given the dimensions of the tank.

vandenbrande (author)2016-11-30

Follow me for more!

About This Instructable




Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:ARDUINO - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: