When the overhead tank is full extra water & electricity are wasted. By using this Water Level Indicator with alarm using Arduino we can overcome this problem. This water level indicator can be made easily at home using Arduino & old radio Speaker.

Water Level indicator with alarm

This simple project is a Water Level Indicator with alarm using Arduino. The main motive of this project is to notify us by music in the Speaker when the tank is almost full so that extra water is not overflowed & electricity for the water pump is not wasted. When the water is not full Red (I used orange) led will glow in the DIY homemade Water Level indicator. As soon as the water is full, a green LED will glow & music in the speaker will start at high volume. Here we used a melody tone of Arduino & popular Despacito song is used.

What we need to make Water Level indicator

  • Arduino UNO
  • Old Radio Speaker
  • 5V DC Power supply
  • Food Container 750 ml
  • Long wires from room to tank
  • aluminium plates 15cm x 2
  • BC547 Transistor x 2
  • Resistor 1k x 2
  • 220-ohm resistor
  • 0.1 uF
  • Green & red LED
  • 10K potentiometer
  • zero PCB board

You can also use Atmega328p IC to make your own arduino. If you do not have Arduino UNO board, you can buy from the link below.

PCB Solder for Water Level Indicator with alarm using Arduino

First of all we have to take one small piece of zero PCB & solder all the components according to the circuit diagram. After soldering it will look like this.

PCB Solder for Water Level Indicator with alarm using Arduino

Circuit Board Analysis Water Level indicator

Here I used 2 BC547 transistors in parallel to reduce heating on a transistor. When the speaker will play alarm at full volume, the current will flow at high ampere. If we use 2 transistors, then-current will divide into two BC547.
From this small PCB board, we will solder jumper wire which will be inserted in the Arduino board. If you make this project using ATMEGA328P, then you can solder everything in one board.

Also we have connected one 10K pot to control speaker output volume. It is recommended to keep it at full volume so that we can hear from long distance.

We have used an old Nikia mobile charger in this project as 5V supply.

Water Level Indicator Circuit Diagram with alarm

You can easily follow this circuit diagram to make your own DIY Water Level Indicator with alarm using Arduino.

water level indicator circuit diagram with alarm

Build & setup of Water Level Indicator with alarm

Here we used plastic food container which restaurants used for online food delivery. After setting up all the connection it will be like this photo below.

DIY Water level alarm

Video Tutorial of Water Level Indicator

Arduino Code Analysis of Water Level Indicator

In the Arduino code below inside bootTone Function, we used small 4-5 seconds starting tone when the device starts. Then in the fullTone function, we play 80 seconds long Melody of Despacito song.

When tank water is full one status flag is set at 1 to prevent the music playing at infinity. When the water level is low then it set to 0.

We have used Arduino analogue pin read value to detect water is full or not. Here we checked when analogue pin read value above 300, the water is full. This value may be different in your case. So check it yourself before final code upload.

Arduino Source code of Water Level Indicator with alarm

//water level alarm with Despacito melody by somtips.com

int water = 0;
int notfull=3;
int full=2;
int speaker = 11;
bool status=0;


void setup(){
  
  
  pinMode(notfull, OUTPUT);
  pinMode(full, OUTPUT);
  digitalWrite(notfull, LOW);
  digitalWrite(full, LOW);
  bootTone();
}

void loop(){
  //water full
  water=analogRead(A0);
  if (water>300){
    if (status==0){
    status=1;
    digitalWrite(notfull, LOW);
    digitalWrite(full, HIGH);
    fullTone();
    }
  }
  else if (water<150) {
    //water not full
    digitalWrite(notfull, HIGH);
    digitalWrite(full, LOW);
    status=0;
    
  }
  delay(2000);
}

//tone Melody

void bootTone() {

  tone(speaker, 587, 709.720327982);
  delay(788.578142202);
  
  delay(10.3082110092);
  tone(speaker, 554, 709.720327982);
  delay(788.578142202);
  
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 369, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 391, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 440, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 440, 41.7482545872);
  delay(46.3869495413);
  delay(36.0787385321);
  tone(speaker, 440, 37.109559633);
  delay(41.2328440367);
  
  delay(30.9246330275);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
}

void fullTone() {

  tone(speaker, 587, 709.720327982);
  delay(788.578142202);
  
  delay(10.3082110092);
  tone(speaker, 554, 709.720327982);
  delay(788.578142202);
  
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 369, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 391, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 440, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 440, 41.7482545872);
  delay(46.3869495413);
  delay(36.0787385321);
  tone(speaker, 440, 37.109559633);
  delay(41.2328440367);
  
  delay(30.9246330275);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(30.9246330275);
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 554, 691.165548165);
  delay(767.961720183);
  delay(314.40043578);
  tone(speaker, 587, 552.004699541);
  delay(613.338555046);
  delay(5.15410550459);
  tone(speaker, 554, 552.004699541);
  delay(613.338555046);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 46.3869495413);
  delay(51.5410550459);
  
  delay(30.9246330275);
  tone(speaker, 493, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 391, 273.683002294);
  delay(304.092224771);
  delay(159.777270642);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 391, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  tone(speaker, 391, 37.109559633);
  delay(41.2328440367);
  
  delay(36.0787385321);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 440, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  tone(speaker, 440, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(30.9246330275);
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(10.3082110092);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(314.40043578);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 412.843850917);
  delay(458.715389908);
  delay(5.15410550459);
  
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 739, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 739, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 412.843850917);
  delay(458.715389908);
  
  delay(469.023600917);
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 125.244763761);
  delay(139.160848624);
  delay(36.0787385321);
  
  delay(134.006743119);
  tone(speaker, 783, 4.63869495413);
  delay(5.15410550459);
  tone(speaker, 880, 129.883458716);
  delay(144.314954128);
  delay(5.15410550459);
  tone(speaker, 880, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 739, 111.328678899);
  delay(123.69853211);
  delay(958.663623853);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 880, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 739, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 554, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 273.683002294);
  delay(304.092224771);
  delay(185.547798165);
  tone(speaker, 659, 199.463883028);
  delay(221.626536697);
  delay(25.7705275229);
  
  delay(206.164220183);
  tone(speaker, 739, 4.63869495413);
  delay(5.15410550459);
  tone(speaker, 659, 171.631713303);
  delay(190.70190367);
  tone(speaker, 739, 190.186493119);
  delay(211.318325688);
  delay(41.2328440367);
  
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 412.843850917);
  delay(458.715389908);
  delay(314.40043578);
  
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 783, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 783, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 739, 552.004699541);
  delay(613.338555046);
  delay(469.023600917);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 739, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  tone(speaker, 739, 37.109559633);
  delay(41.2328440367);
  delay(36.0787385321);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(190.70190367);
  tone(speaker, 880, 78.8578142202);
  delay(87.619793578);
  delay(36.0787385321);
  
  tone(speaker, 880, 78.8578142202);
  delay(87.619793578);
  delay(30.9246330275);
  tone(speaker, 783, 190.186493119);
  delay(211.318325688);
  
  delay(25.7705275229);
  tone(speaker, 739, 190.186493119);
  delay(211.318325688);
  delay(36.0787385321);
  tone(speaker, 659, 807.132922018);
  delay(896.814357798);
  
  delay(201.010114679);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 32.4708646789);
  delay(36.0787385321);
  delay(41.2328440367);
  
  tone(speaker, 587, 32.4708646789);
  delay(36.0787385321);
  delay(41.2328440367);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  
  delay(159.777270642);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(30.9246330275);
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  
  delay(20.6164220183);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  delay(159.777270642);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 554, 27.8321697248);
  delay(30.9246330275);
  delay(41.2328440367);
  
  tone(speaker, 554, 27.8321697248);
  delay(30.9246330275);
  delay(51.5410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  delay(159.777270642);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  tone(speaker, 587, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(30.9246330275);
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(10.3082110092);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 51.0256444954);
  delay(56.6951605505);
  delay(25.7705275229);
  
  tone(speaker, 493, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  
  delay(5.15410550459);
  tone(speaker, 493, 64.9417293578);
  delay(72.1574770642);
  delay(314.40043578);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 46.3869495413);
  delay(51.5410550459);
  delay(30.9246330275);
  tone(speaker, 659, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 60.3030344037);
  delay(67.0033715596);
  delay(20.6164220183);
  tone(speaker, 659, 60.3030344037);
  delay(67.0033715596);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 51.0256444954);
  delay(56.6951605505);
  
  delay(25.7705275229);
  tone(speaker, 659, 51.0256444954);
  delay(56.6951605505);
  delay(15.4623165138);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 440, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  delay(82.4656880734);
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  
  delay(5.15410550459);
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  delay(82.4656880734);
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  
  tone(speaker, 587, 64.9417293578);
  delay(72.1574770642);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 880, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 739, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 166.993018349);
  delay(185.547798165);
  
  delay(77.3115825688);
  tone(speaker, 659, 125.244763761);
  delay(139.160848624);
  delay(72.1574770642);
  tone(speaker, 659, 129.883458716);
  delay(144.314954128);
  delay(92.7738990826);
  tone(speaker, 659, 143.799543578);
  delay(159.777270642);
  delay(97.9280045872);
  tone(speaker, 587, 148.438238532);
  delay(164.931376147);
  delay(82.4656880734);
  
  tone(speaker, 659, 259.766917431);
  delay(288.629908257);
  delay(15.4623165138);
  tone(speaker, 587, 148.438238532);
  delay(164.931376147);
  delay(15.4623165138);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 106.689983945);
  delay(118.544426606);
  delay(36.0787385321);
  tone(speaker, 587, 106.689983945);
  delay(118.544426606);
  delay(36.0787385321);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 83.4965091743);
  delay(92.7738990826);
  delay(61.849266055);
  tone(speaker, 369, 83.4965091743);
  delay(92.7738990826);
  delay(61.849266055);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  
  delay(30.9246330275);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(20.6164220183);
  tone(speaker, 587, 46.3869495413);
  delay(51.5410550459);
  delay(30.9246330275);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(30.9246330275);
  tone(speaker, 554, 125.244763761);
  delay(139.160848624);
  delay(56.6951605505);
  tone(speaker, 554, 111.328678899);
  delay(123.69853211);
  delay(51.5410550459);
  
  tone(speaker, 554, 115.967373853);
  delay(128.852637615);
  delay(61.849266055);
  tone(speaker, 554, 125.244763761);
  delay(139.160848624);
  delay(87.619793578);
  
  tone(speaker, 554, 106.689983945);
  delay(118.544426606);
  delay(87.619793578);
  tone(speaker, 493, 153.076933486);
  delay(170.085481651);
  delay(46.3869495413);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(159.777270642);
  tone(speaker, 587, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  tone(speaker, 587, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 391, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  
  tone(speaker, 587, 32.4708646789);
  delay(36.0787385321);
  delay(36.0787385321);
  tone(speaker, 587, 32.4708646789);
  delay(36.0787385321);
  delay(46.3869495413);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 493, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  
  tone(speaker, 659, 55.6643394495);
  delay(61.849266055);
  delay(25.7705275229);
  tone(speaker, 659, 51.0256444954);
  delay(56.6951605505);
  delay(10.3082110092);
  
  tone(speaker, 659, 46.3869495413);
  delay(51.5410550459);
  delay(25.7705275229);
  tone(speaker, 659, 41.7482545872);
  delay(46.3869495413);
  delay(30.9246330275);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  
  tone(speaker, 587, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  
  tone(speaker, 659, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 659, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(159.777270642);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 587, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 554, 264.405612385);
  delay(293.784013761);
  
  delay(15.4623165138);
  tone(speaker, 554, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  tone(speaker, 554, 51.0256444954);
  delay(56.6951605505);
  delay(20.6164220183);
  tone(speaker, 554, 273.683002294);
  delay(304.092224771);
  
  delay(5.15410550459);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 554, 134.52215367);
  delay(149.469059633);
  delay(5.15410550459);
  tone(speaker, 493, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 587, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 554, 129.883458716);
  delay(144.314954128);
  delay(10.3082110092);
  tone(speaker, 369, 134.52215367);
  delay(149.469059633);
  
  delay(5.15410550459);
  tone(speaker, 369, 273.683002294);
  delay(304.092224771);
  delay(5.15410550459);
  tone(speaker, 369, 273.683002294);
  delay(304.092224771);
  
}

Final Output of Water Level Indicator with alarm using Arduino

The final product will look like this.

DIY water level indicator

Connect it to an overhead water tank

At last, we have to connect it with an overhead water tank with long wires. You can use Aluminum or copper plate or wire inside the water tank for good conductivity.

overhead tank connection

Conclusion of the project

This is a very simple project you can try at home if you are Arduino lover. Wiring & code is very simple. The alarm is used here of 80 seconds. If you want to reduce alarm duration, you can use any other melody by searching the Internet.