Circuit Diagram of Water Level Indicator

Circuit Diagram Of Water Level Indicator — circuit diagram showing component connections230V SupplyBreakerPROBESProbes (H/L/C)KPump RelayPump ContactPWater PumpWater Level Controller (Probe-based)
Circuit Diagram of Water Level Indicator — interactive diagram. Open it in the editor to customise components and wiring.

This is a free printable circuit diagram of water level indicator: download the diagram as SVG or open it and print to paper or PDF.

A water level indicator circuit uses conductive probes at fixed heights in a tank, with transistor or comparator sensing stages that detect the low conductivity of water completing the circuit between the probe and a common reference electrode.

A transistor-based water level indicator is one of the most practical and instructive beginner-to-intermediate electronic circuits. It demonstrates the transistor as a switch, the concept of base current control, the use of water's conductivity as the switching element, and the need for AC sensing to prevent electrode corrosion.

The Sensing Principle: Water has a finite electrical conductivity due to dissolved ions. Pure distilled water has very high resistance (approaching insulation), but ordinary tap water, bore water, and especially reservoir water have enough ionic conductivity to allow a small current to flow between two metal probes immersed in the water. This small current is used to forward-bias the base-emitter junction of an NPN transistor, switching it on and driving a load (LED indicator or relay).

Basic Circuit (Single Level, DC): A metal probe (stainless steel rod or wire) is positioned at the water level to be detected. A second probe acts as the common reference electrode and is positioned below the minimum level (always in contact with water or touching the tank base). When water touches the sensing probe, a small current flows from the probe, through the water resistance, to the reference electrode. This current is directed through a base resistor into the base of an NPN transistor. The transistor's collector-emitter junction switches on, energising an LED or relay connected between the collector and the positive supply.

Multi-Level Sensing: By adding multiple probes at different heights — each connected through its own base resistor to its own transistor and indicator LED — the circuit can indicate empty, low, medium, and full tank levels simultaneously. The reference electrode is common to all sensing stages.

AC Sensing for Electrode Longevity: DC sensing causes electrolytic corrosion of the metal probes over time. The DC current drives electrochemical reactions (electrolysis) at the probe surfaces, depositing or dissolving metal and producing oxides that eventually coat the probes and increase their resistance, causing the circuit to stop detecting water. Using a low-frequency AC sensing voltage (typically from a 555 timer astable or a transformer secondary) instead of DC prevents net electrolytic action because the electrode polarity reverses each half cycle, preventing sustained one-direction electrochemical reactions. The AC signal must be rectified after detection to drive the DC transistor or indicator circuit.

IC-Based Approach: An alternative to discrete transistors is to use a quad comparator IC (such as LM324 or LM393 with pull-up resistors) with the probe voltage compared against a reference voltage. This approach provides cleaner switching with adjustable hysteresis, preventing false triggering from water surface turbulence.

How to wire circuit diagram of water level indicator

  1. Plan the probe positions and number of levels Decide how many water levels you need to indicate (typically 3–5: empty warning, low, half, high, full). Measure the tank height and mark the probe insertion heights. The lowest probe (reference electrode) must be at or below the minimum water level — it should always be in contact with water or tank base. Each sensing probe is positioned at the level it is intended to detect. Leave adequate spacing between probes to prevent bridging by surface tension.
  2. Select and prepare the sensing probes Cut stainless steel rods or wire to the appropriate length to reach from the tank lid or top fitting to the desired probe height. Ensure all probes are the same material to prevent galvanic coupling between dissimilar metals. Insulate each probe along its length except at the sensing tip — use food-grade heat-shrink tubing or PTFE tape for potable water tanks. Label each probe with its position (empty, low, mid, high, full reference).
  3. Assemble the transistor sensing stage on a breadboard For each sensing level, connect one 10 kΩ base resistor between the sensing probe terminal and the base of an NPN transistor (such as BC547, 2N2222, or 2N3904). Connect the emitter of each transistor to the negative supply rail (0 V). Connect the collector through a 470 Ω resistor to the LED anode, and the LED cathode to the positive supply — or connect the collector through the relay coil with a flyback diode if driving a relay. Connect the reference probe terminal to the negative supply rail (0 V ground).
  4. Add AC sensing (for long-term reliability) To implement AC sensing, replace the DC supply to the probe circuit with the output of a 555 timer wired as an astable multivibrator at approximately 50–500 Hz, or use a small step-down transformer secondary. The AC signal drives a current through the water when the probe is immersed. Add a simple half-wave or full-wave rectifier stage using a 1N4148 diode after the probe and before the base resistor to recover a DC signal that can drive the transistor. This is more complex to implement but significantly extends probe life.
  5. Test the sensing circuit with a glass of water Before installing in the tank, test the circuit with a glass of tap water. Power the circuit. Dip the reference probe into the water. One at a time, dip each sensing probe into the water and verify the corresponding LED lights up. Remove the probe from the water and verify the LED extinguishes. Adjust base resistor values if the transistor does not switch cleanly — a higher base resistor value gives more sensitivity (works with higher-resistance water) but may cause instability near the water surface.
  6. Install probes in the tank and route signal wiring Mount the probe assembly through a watertight gland fitting in the tank lid or side. Use a suitable waterproof connector or cable gland rated for the tank contents (potable water, chemical, sewage). Route the signal wiring from the tank to the indicator unit using shielded cable where possible — long unshielded runs in industrial environments pick up interference that causes false triggering. Keep signal wiring away from mains cables.
  7. Commission and calibrate the indicator Fill the tank incrementally while observing the indicator LEDs. Verify each LED activates at the correct water level as the tank fills. Verify the LEDs de-activate correctly as the tank drains (there may be a small hysteresis — the LED may not extinguish until the water level drops slightly below the probe, due to surface tension). Check that probe positions in the tank have not moved during installation. Verify the relay contact operation (if a pump control is fitted) at the correct level.

Specifications

Typical sensing supply voltage5 V DC or 12 V DC regulated
Typical base resistor value10 kΩ to 100 kΩ (adjusted to water conductivity of installation)
Typical tap water resistance between probes 5 cm apart10 kΩ to 200 kΩ depending on dissolved mineral content
Recommended probe material304 or 316 stainless steel rod or wire (corrosion-resistant; potable water safe)
Recommended probe diameter2–6 mm stainless steel rod
AC sensing frequency (to prevent electrolysis)50–500 Hz square or sine wave; generated by 555 astable or transformer secondary
Transistor typeGeneral-purpose NPN (e.g., BC547, 2N2222, 2N3904); minimum hFE 100
LED series resistor (5 V supply, 10 mA LED current)Approximately 330–470 Ω (R = (5 V - 2 V forward voltage) / 10 mA)

Safety warnings

Tools needed

Common mistakes

Troubleshooting

LED stays on even when probe is removed from water
Cause: Leakage current through moisture on the probe insulation or cable bridging the base circuit, RF or 50 Hz interference on the probe cable forward-biasing the transistor, or the base resistor value is too low Fix: Dry the probe and its cable thoroughly. Move the probe cable away from mains wiring. If the problem persists, increase the base resistor value (e.g., from 10 kΩ to 47 kΩ or 100 kΩ) — this requires a larger base current to turn the transistor on and reduces susceptibility to leakage and interference. Alternatively, add a small capacitor (100 nF) from the transistor base to ground to filter high-frequency interference.
LED does not light even when probe is clearly submerged
Cause: High water resistance (very pure or distilled water, or probe surfaces coated with oxide from DC electrolysis), open base circuit, transistor failed, or the base resistor value is too high for the water conductivity at this installation Fix: Test the water conductivity by measuring resistance between two probes submerged 5 cm apart — typical tap water gives 10–200 kΩ depending on mineral content. If resistance is higher than the base resistor value, the transistor cannot turn on. Reduce the base resistor to one-tenth of the measured water resistance. If the probes are coated, clean with fine abrasive to remove oxide layer. If the circuit has been running on DC for some time, switch to AC sensing.
Indicator fluctuates rapidly on and off near the water surface
Cause: Water surface turbulence or splash intermittently contacting the probe, or sensitivity is so high that minor variations in the electrical path cause the transistor to oscillate between on and off Fix: Add a small debounce capacitor (10–100 µF electrolytic) between the transistor collector and the positive supply — this slows the indicator's response and prevents rapid flickering from momentary contact. Alternatively, add hysteresis to the sensing circuit using a comparator IC with positive feedback rather than a simple transistor switch. Consider repositioning the probe away from areas of high turbulence.

Frequently asked questions

Why do the probes in a water level indicator corrode and how can it be prevented?

DC sensing causes electrolysis at the probe surfaces — ions migrate toward each electrode under the constant DC field, depositing oxides and metal compounds that coat the probe and increase its effective resistance. The circuit eventually stops detecting water even when the probes are submerged. Using an AC sensing voltage (alternating the probe polarity at audio or sub-audio frequency) prevents net electrolytic migration because the polarity reverses before significant ion deposition can occur.

What material should the sensing probes be made from?

Stainless steel is the standard choice — either 304 or 316 grade stainless steel rod or wire. It is corrosion-resistant in most water types, food-safe for potable water tanks, and retains its conductivity even with minor surface oxidation. Carbon-impregnated graphite rods are also used in some applications. Bare copper corrodes quickly in water and leaves blue-green oxide deposits. Aluminium corrodes rapidly in most water types. Never use galvanised (zinc-coated) materials in potable water tanks.

How does a transistor work as a switch in a water level indicator?

An NPN transistor has three terminals: base, collector, and emitter. When no current flows into the base, the transistor is off and no current flows between collector and emitter — the LED or relay is de-energised. When a small base current flows (in this circuit, through the water resistance to the reference probe), it switches on a much larger collector-emitter current — enough to light an LED or energise a relay coil. The ratio of collector current to base current is the transistor's current gain (hFE), typically 100–500.

What is the purpose of the base resistor in each sensing stage?

The base resistor limits the current flowing from the probe through the water and into the transistor base. Without it, the transistor base-emitter junction would draw excessive current, potentially damaging the transistor and creating an excessive sensing current through the water, which increases probe corrosion. The base resistor is typically 10 kΩ to 100 kΩ — high enough to limit current while still being low enough relative to the water resistance to allow the transistor to switch on reliably.

Can a water level indicator be connected directly to control a pump?

Yes, but not directly from the transistor output for any pump of meaningful power. The transistor switches a relay, whose contacts are rated for the pump's motor current and voltage. For a single-phase pump motor, the relay contacts must be rated for the motor's full-load current at mains voltage with AC-3 derate for inductive load. The relay provides galvanic isolation between the low-voltage sensing circuit and the mains-powered pump circuit. Any pump control mains wiring must be performed by a qualified electrician.

Related diagrams

Free electrical calculators

Edit this diagram free in the online editor