Home » Electronic Sensors » 6 LED Water Level Indicator Circuit (with Images)
6 LED Water Level Indicator Circuit (with Images)

6 LED Water Level Indicator Circuit (with Images)

In this post we discuss how to make a simple water level indicator circuit using a single IC 4049 and some LEDs, the later section of the articles also discusses how to upgrade the circuit with a relay controller stage.

Circuit Objective

There are many posts in this blog which essentially explain water level controller circuits, with the specific intentions of switching the involved motor pump when the tank fills up.

However there are folks who just require an indication of the different levels of water in the tank rather than have an automatic shut off facility.

The switching OFF of the motor is preferred to be carried out manually, which is considered more reliable and safe by them.

Circuit Operation

The proposed water level circuit idea is specifically suited for the above type of readers who are satisfied with the indications only and want to do the shutting part of the motor manually as per the readings of the indicator and as per the desired water levels in the tank.

  1. The circuit presented here is again super simple to build, involving only a single IC 4049 for the intended applications.
  2. The IC as we all know have six NOT gates, these gates are simple inverters, meaning they will invert any voltage level at their input pins to exactly the opposite level at their output pin.
  3. So if a positive is applied to the input, the output would instantly produce a negative and vice versa.
  4. The high input impedance of CMOS gates makes sure that potential even with very low currents are suitably sensed and interpreted by them.
  5. The idea is simple, the ground or the negative voltage (point 0 in the figure) is held at the bottom most part of the tank, such that the water reaches this point first up when it starts filling.
  6. As the water level goes higher, it subsequently comes in contact with the inputs of the NOT gates arranged serially upwards.
  7. The negative voltage stationed at the bottom of the tank leaks through the water and comes in contact with the relevant inputs of the gates.
  8. This negative potential applied at the subsequent inputs of the gates means a production of an opposite voltage, that is a positive potential at their outputs, that's what exactly happens.
  9. The positive voltage thus generated lights up the concerned LEDs, indicating which input of the gate at what level has come in contact with the rising water level.
  10. The sensor wire terminals from the circuit in the form of the points 0 to 6 may be arranged over a non conducting stick made up of plastic with brass screw heads fitted as the sensor termination.
  11. The LED illuminations give a direct indication of the water levels, as these are stationed with calibrated positions in the tank (see circuit  diagram)

The pin out diagram of the IC 4049 is given below:

Simulation: A rough simulation of the discussed water level indicator circuit is shown below. We can see how the LEDs light up sequentially in response to the increasing water level coming in contact with the respective sensor points inside the water tank

Image credit: https://en.wikipedia.org/wiki/File:CMOS_4049_diagram.svg

Part List.

All LED resistors are 470 Ohms,

All gate input resistors are 2M2

All capacitors are 0.1 disc ceramic.

All the gates are from the IC 4049

All LEDs are red 5mm, or as preferred by the maker.

Upgrading to an Automatic Water Level Controller

Now let's try to understand how the above water level indicator circuit concept can be enhanced into a water level controller circuit, by adding a relay system which will switch OFF the motor as soon as the water level reaches the tank brim.

The circuit provided below performs a dual function of both, as an over head tank water level indicator circuit as well as an overflow controller. The indications of the rising water are provided by five LEDs, which light up sequentially in response to the rising water level inside the tank.

Circuit Diagram

How the Circuit Functions

As soon as the water reaches the uppermost level of the tank, the last sensor positioned at the relevant point triggers a relay which in turn switches the pump motor for initiating the required water evacuating action.

The circuit is as simple as it could be. Use of just one IC makes the entire configuration very easy to build, install and maintain.

The fact that impure water which happens to be the tap water that we receive in our homes offers a relatively low resistance to electricity has been effectively exploited for implementing the intended purpose.

Here a single CMOS IC 4049 has been employed for the necessary sensing and executing the control function.

Another interesting associated fact that’s associated with CMOS ICs has helped in making the present concept very easy to implement.

It is the high input resistance and sensitivity of the CMOS gates which actually makes the functioning completely straightforward and hassle free.

As shown in the above water level indicator circuit figure, we see that the six NOT gates inside the IC 4049 are arranged in line with their inputs directly introduced inside the tank for the required sensing of the water levels.

The ground or the negative terminal of the power supply is introduced right at the bottom of the tank, so that it becomes the first terminal to come in contact with water inside the tank.

It also means that the preceding sensors placed inside the tank, or rather the inputs of the NOT gates sequentially come in contact or bridges themselves with the negative potential as the water gradually rises inside the tank.

We know that NOT gates are simple potential or logic inverters, meaning their output produces exactly the opposite potential to the one that’s applied to their input.

Here it means as the negative potential from the water bottom comes in contact with the inputs of the NOT gates through the resistance offered by the water, the output of those relevant NOT gates sequentially start producing opposite response, that is their outputs start becoming logic high or become at the positive potential.

This action immediately lights up the LEDs at the outputs of the relevant gates, indicating the proportionate levels of the water inside the tank.

Another point that’s to be noted is, all the inputs of the gates are clamped to the positive supply through a high value resistance.

This is important so that the gates inputs are initially fixed at the high logic level and subsequently their outputs generate a logic low level keeping all the LEDs switched off when there’s no water present inside the tank.

The last gate which is responsible for initiating the motor pump has its input positioned right at the brim of the tank.

It means when the water reaches t the top of the tank and bridges the negative supply to this input, the gate output becomes positive and riggers the transistor T1, which in turn switches the power to the motor pump through the wired relay contacts.

The motor pump stats and begin evacuating or releasing the water from the tank to some other destination.

This helps the water tank from overfilling and spilling, the other relevant LEDs which monitors the level of the water as it climbs also provides important indication and information regarding the instantaneous levels of the rising water inside the tank.

Parts List

R1 to R6 = 2M2,

R7 to R12 = 1K,

All LEDs = Red 5mm,

D1 = 1N4148,

Relay = 12 V, SPDT,

T1 = BC547B

N1 to N5 = IC 4049

All the sensor points for this LED water level indicator circuit are ordinary brass screw terminals fitted over a plastic stick at the required measured distance apart and connected to the circuit through flexible conducting insulated wires (14/36).

Practical Tested Prototype

The above circuit was successfully built and tested by Mr. E.Rama Murthy who is one of the regular and dedicated readers of this blog. The following pictures of the built prototype were sent by him, let's investigate the results closely.

Upgrading the Relay Circuit

The above discussed water level indicator with relay control circuit has one serious drawback. Here the relay operation might continuously keep switching the motor ON/OFF as soon the water level reaches the overflowing threshold, and also immediately when the upper level reduces slightly below the topmost sensor point.

This action may not be desirable for any user.

The drawback can be eliminated by upgrading the circuit with an SCR and transistor circuit as shown below:

How it Works

The above intelligent modification ensures that the motor is switched ON as soon as the water level touches the point "F", and hereafter the motor keeps running and pumping the water out even while the water level drops below the point "F" .... until it finally reaches below the point "D".

Initially when the water level goes above the point "D" the transistors BC547 and BC557 are turned ON, however the relay is still inhibited from switching ON because the SCR is switched OFF during this time.

AS the tank fills and the water level rises upto the point "F" output of gate N1 turn positive latching ON the SCR, and subsequently the relay and the motor also switch ON.

The water pump begins pumping water out from the tank which results in emptying the tank gradually. The water level now drops below the point "F" switching OFF N1, but the SCR keeps conducting being in the latched situation.

The pump keeps running causing the water level to drop continuously until it reduces below the point "D". This instantly switches OFF the BC547/BC557 network, depriving the positive supply to the relay, and eventually switching OFF the relay, the SCR and the pump motor. The circuit returns to its original situation.


About the Author

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials. If you have any circuit related query, you may interact through comments, I'll be most happy to help!

73 thoughts on “6 LED Water Level Indicator Circuit (with Images)”

  1. Sir I need another 2 indications to the same circuit
    1) water filling to tank from municipal source
    2) water from under water source.
    We should know which source of water was filling to the water tank by “Led” indication this should be by same circuit was it possible

    • Manjunath, it can be very easily implemented. Suppose you want the 6th gate to inform you about this, then you can pick one link from the 6th gate input and another link from the ground line and position the end terminals 1 inch apart and place them at the mouth of the source. So when the water arrives it will connect these terminals and the respective IC gate will illuminate the LED providing the required indications.

      • Sir,
        but sixth gate is already used for water level “full” indication.
        Without interrupting, the above indicators, can I use sixth gate as another indicator for ground water inflow indicator to the water tank. By adding another component that would work as 6th gate as water level full indicator ( as shown in diagram) and also ground water inflow indicator

        • Hi Manjunath, I just gave an example of the 6th gate….if you actually use the 6th gate for indicating the water source then it will illuminate in advance if the water comes from that source and will become ineffective as the full level indicator.

          Instead it’s better to employ a separate PNP BC557 Darlington based network, and use it for sensing water from the source through its base, and the ground line.

  2. please advice value of R 13 in circuit diagram with pump control. in circuit diagram you show 13 resistors but in pictures only show 12 resistors. R1 TO R6 = 2M2 and R7 TO R12 = 1K. What is value of R13 ?

      • Good day. I would like to know if i can make sensor f and o common, will that turn off the relay when water level drops below sensor fo? ( sensor f and o is one sensor.) and will the rest of the circuit function normal?

        • Hi Ian, that may not be possible without some elaborate modifications, I have updated the modified design for enabling this operation, you can find the upgraded design at the bottom section of the article. This will allow the motor to switch ON only when the water level reaches point “F” and switch OFF when it drops below point “D”

          • Good day.
            Thank you sir for your quick response, time and effort to modify this circuit for my kneed, i rely appreciate it.
            I have a 45 L reservoir filled by hand with water and a submersible pump and aquarium heater inside the reservoir. The heater stays on permanently and regulate the water temperature with a thermostat, the pump is controlled through a timer at regular intervals of two hours off and fifteen minutes on. The water that gets pumped out of my reservoir into a separate hydroponics system, finally flows back into my reservoir through gravity, but eventually the plants use some of the water and the water level in my reservoir drops and needs topping up. The hydroponics system cannot over fill because there is a extra drain pipe, placed at the correct level, draining back to reservoir. This hydroponics system is called flood and drain.
            I want to use the water level circuit to indicate the water level in my reservoir without opening the reservoir and to protected my pump and heater from running dry or switch off power to pump and heater below sensor D for example. With your new circuit i can clearly see where to incorporate the two transistors to control the relay for switching power to pump and heater. The SCR, in my case, is not needed so i can use N1 gate to turn on an extra led placed at the correct place for a more accurate water level indicator and include a buzzer for audio warning when water level drops to low with the extra gate available now.
            I hope my explanation of my requirements makes sense to you, but one thing is for sure, i know now how to switch what ever at what ever level with this circuit.
            Please correct my if i am wrong with reading and understanding your new circuit. Circuit must indicate water level of reservoir and audio alarm at sensor D and turn of power to pump and heater at sensor E and now extra sensor F gained from not needed SCR.
            Thank you Sir.

            • Thanks for the detailed explanation,

              However I think the SCR is crucial here, otherwise it would be same as the earlier circuit and the relay would keep toggling ON/OFF in response to the upper water level.

              The SCR ensures that once the motor is initiated with the top level water, it doesn’t stop until the water level has reached below the “D” point.

              So the SCR along with the two transistors are crucial in the last modified design.

  3. Dear sir,
    I made a water level controller with your help but the problem arises with corrosion at probes. so I need your help and want to know about such a material that do not corode.
    One thing I want to mention that I have used a water level controller device of skylet company, its sensor do not corode over long period of use so I want to know what type material they use?

    • Dear Rakesh, corrosion can be avoided by using brass terminals coated with good quality solder, however it is not the corrosion we are worried about, rather it is the formation of a non conductive layer over terminals which can create problems. That can be prevented by a applying a push-pull kind of supply to the terminals.

      An alternative long term solution would be to use separate ground terminals for each of the sensing terminals, instead of a single ground at the bottom of the tank.

  4. Dear sir,
    Please tell me why 0.1 disc capacitor is used in the above circuit. Will it work with out the capacitors ?
    Thank you .

    • Nataraj, the 0.1uF are positioned to prevent stray disturbances affecting the gate input pins, and to prevent false LED illumination.
      If the sensing wires are small then the capacitor can be avoided otherwise it is recommended to include those capacitors.

  5. sir as the wire immersed in water . later on a thick white layer formed arround the cutted part of wire , and it stoped working , so what should i do to work that for long period.
    thak you sir

    • manjunath, did you tin the terminals with ample solder metal?? make a ball of solder at the ends

      make sure to use good quality 60/40 solder and then check the response

  6. and what about during ligtning period, since it is connectd to mains through transformer, if it affects than suggest me the rating of fuse to connect to the primary of transformr

        • Sir whwen I connected the MOV at 220V side the voltage reduces to 30-40V, and thus circuit does not work………….???
          and one more thing , I want to connect a pre-recorded voice buzzer that will sound like."your tank is full plz switch off your motor"
          and i could not find this type of buzzer on the internet . …..so plz suggest me the name of this type of buzzer and also some online store …thanx

          • Shah, an MOV will never drop the AC mains even by 1V….and if its dropping by 30-40V then that indicates heavy current shorting and should blow the mains DP fuse….I am not sure what may be the problem?

            the prerecorded system will need to be made to order from the market….or you may have to buy special audio clip reorder IC for enabling recording and playback

  7. sir if i connect 12 ac in place of dc in the above, then will circuit work? If yes than will the tank water give any shok?

    And i have one more question that i have made the same thing but the circuit is different in which 6V ac is used by a stepdown 220/6 v 500mAmp transformer. And the circuit is working quite good, so my Question is that is their any chances of shok in tank water if any person come in contact.

    • hussain, ac supply will damage the IC immediately, not sure how it's working for you.

      you can put a diode in series with the positive for applying a pulsating DC, that might work but never use AC.

      6V, or 12V pulsating DC or AC will not give any shock in the water.

  8. and also sugest such materials as probe which will not get corroded very soon, amd also which wire should i use cu or aluminium

  9. sir, i have made this project.. And it was working quite good but after two week the probe get corroded and due to this circuit is not working properly ie led light flactuation . Etc

  10. sir i want connect an alarm so what modifications should i do if the alarm is high power alarm generally used as door alarm


    • manjunath, sorry I could not properly understand what you are trying to say….

      yes, the explanation in the above article is correct and is in detail

      your image is too small to see.

    • Sir , In this circuit can I make only 4 indicator levels instead of 6 as shown in diagram.
      was it works,
      If it works, wheather should I connect input gate and output gates one by one order or any
      gates like for level 1 input pin 3 of 4049 and output pin 2
      For level 2 input pin 9 output pin 10
      visa versa

    • Hi Manjunath, you can use 4 gates out of the six, but make sure that the input pins of the remaining two unused gates are connected either to ground or to the positive rail…the outputs can be left open.

      you can arrange the gates as you want, all the gates are exactly similar and can be positioned randomly or as desired, a specific sequence is not necessary.

  11. I have added the IC image just to make it clear about the inputs and the outputs and the supply pins to the newcomers.

  12. Hey, i'm in software domain. Actually i need this circuit design to implement in my home.
    Could you please send me detailed labeled circuit diagram with IC 4049 connected.

    Thanks in advance..
    Keep up the good work.

    • The "triangles" inside the 4049 and the corresponding pinouts are shown in the second pic, you just have to connect the involved pins as per the circuit diagram given in the first pic, it's quite simple actually.,

      any "triangle" can be positioned anywhere all are identical with their characteristic

  13. hello my name is amir'm from Buenos Aires Argentina.
    I need your help designing a circuit.
    I need a circuit to heat water in a tank and when it reaches a temperature has to cut the feeding 220vca..y … also it disconnects itself from already thank you very much.

  14. how much output current on any pin of 4049. because i want to connect alarm bell with pin. so i want to know how much power of bell i can use.
    and i want to use door bell like (ding dong) with this circuit then how can do this. i think i require one another circuit in which thyristor is used to connect with this circuit for connecting ac bell. Am i right?

    • 10mA will be available at the gate outputs.

      It's advisable to use a transistor/relay driver at the output of the gate for operating a high power bell, whether AC or DC

  15. yes the diagram looks OK to me, the latching would work and stop the relay from reactivating, but the circuit will need to be reset each time the water level goes below the lower threshold.

  16. the shown 2M2 is also a big value, but if you want to use even bigger values you can try, for example 10M could be tried instead of 2M2.

    • sir in your Water Level Indicator Circuit with Relay Controller in water tank A B C D is marked there these are sensor or not

      • Sharan, the A B C D points are sensors made by using tinned copper wires, you can also use tinned brass metal. Larger surface area will give better results.

  17. Hi,

    Yap it should be switched off manualy after filling.

    I have one question it seems that logic gates have big resistance so I think about putting resistor of bigger value in parallel with logic gate so that final resistance is lower and then it could work in water with big resistance, is it possible in real world? It seems that it is working in simulation but I am not sure.

  18. Hello Thanks!

    Yes, that looks OK to me. but the relay will keep switching everytime the water level dips below the upper threshold.

  19. Hello,

    this is a bit tweaked circuit and it seems in simulation that it could be used to turn water pump off automaticly when water reaches some level…but I have no idea how it would act in real life xD


    Best regards.

  20. Hello Swagatam,

    What would be the effect, if base of the transistor is connected at the same position of the LED of gate 6 which will energize a relay to open its normally open contact?.

    If it can not work that way, what needs to be done to consider it and automatic control circuit?.


  21. hello sir
    could u pls suggest a circuit for alarm which use input from one of the output of above circuit
    coz i have three overhead tank n a underground tank . want to use single speaker (8 ohm )

    • hello aashish, do the following things:

      make a 555 astable multivbrator circuit with a frequency that would generate the required alarm audio

      connect pin1 of the IC to a 8050 transistors collector, connect its emitter to ground, base to 4049 ICs any one of the outputs via a 1k resistor.

      connect the speakers one of the wires together and connect the common joint to pin3 of the 555, similarly connect the common wire joint of the speakers to ground.

      that's it once activated all the speakers would start buzzing

    • thank you
      i will keep looking for it . can we use other sound library ic available in the market like IC HT2844P or pic16f887

  22. dear ashish,
    yes the remaining pins are not used.
    a piezo buzzer can be connect directly across one of the outputs of the gates and ground, just as the LEDs are connected.

  23. dear swagatam,
    refering to pin out diagram only 2,3,4,5,6,7,9,10,11,12,14,15, numbered pins are to be used and others left idle.
    also pls suggest to how to add buzzer to the circuit

  24. I think at 12V electrolysis could be very negligible to affect much especially without any acidic agent in water, moreover natural electrolysis of this kind will only dissociate water ions not the electrode ions.
    Lead may be tightly bonded in solder metal so it will not easily separate, and whatever may dissolve could be again too insignificant to cause any health issues.

    yet for extreme safety two things can be done, use electroplated electrodes (tin or chromium plated) and connected 100k resistors in series with each sensing terminals for reducing current such that only the IC is able to sense it without initializing electrolysis.

    with AC the circuit will not operate and moreover higher volt could force more electrolysis to occur.

  25. You can tin the terminals with a thick layer of solder for reducing corrosion as tin is resistant to most passive chemical reactions.

  26. The indicated ground is the 12V adapter supply ground (negative), it's not the earthing type of ground, so lightning will not get attracted to it in anyway.

    You can connect and ground the tank body with the your home earthing wire for more safety if you feel it necessary.

  27. Hi
    One basic question.
    What is the current being passed through the probes?
    Is there any risk to human life when the current passes through water?
    I dont want to have shock when I turn on tap in my kitchen.


  28. Refer to the IC pin out diagram given below the circuit diagram, you can easily compare and replace the pin numbers over the circuit and understand the inputs and the outputs appropriately.

Leave a Comment

Do NOT follow this link or you will be banned from the site!