Tech News

Technology 2: How to Make a Water Leak Sensor

8 min read · 12 October 2026
Illustration for the article “Technology 2: How to Make a Water Leak Sensor”
66 reads

You can make a water leak sensor using two exposed contacts: when water connects them, the circuit closes and the device sounds an alarm. In “Technology 2,” we’ll look at how to build this kind of sensor and place it where a leak is likely.

The principle is simple, but the details matter if you want a useful device: the contacts must respond specifically to water, and the signal must be noticeable. Let’s go through the design and main assembly steps so the water leak sensor warns you about a problem rather than going off for no reason.

What a DIY alarm and a ready-made leak sensor can do
Option Signal when water is detected Phone notification Water shutoff
Battery, buzzer, and electrodes Yes, audible No No
Aqara Water Leak Sensor Depends on the model and setup With a compatible hub No, not on its own
Sensor with an electric valve Depends on the kit Depends on the system Yes, with compatible automation
  • 3 В battery supply voltage in the described circuit
  • 2 электрода number of contacts that water connects to close the circuit
  • 230 В household mains voltage; never connect a DIY sensor to it

What do you need to make a simple leak sensor?

To make a simple leak sensor, you’ll need a 3 В battery holder for two AAA cells, a 3 В active piezo buzzer, and two electrodes. Do not connect the DIY circuit to the 230 В household mains: use batteries only.

An active piezo buzzer makes a sound when powered; a passive buzzer needs a control frequency to produce a signal. For electrodes, you can use two pieces of insulated wire with stripped ends or two strips of stainless steel. Leave a gap between the electrodes so they don’t touch.

What to check before assembly

  • Power: Insert two AAA cells into the 3 В holder, following the marked polarity.
  • Buzzer: Choose an active model rated for 3 В, and check the polarity marked on its casing.
  • Connections: Prepare hookup wire and electrical tape; before assembly, check the “plus” and “minus” markings on the battery holder and buzzer.

How do you connect the battery, buzzer, and contacts?

Circuit layout

Connect the battery holder, active buzzer, and two electrodes in series: run a wire from the battery holder’s positive terminal to the buzzer’s positive terminal, then connect the first electrode, leaving a gap between the electrodes, and connect the second electrode to the battery holder’s negative terminal. When water touches both electrodes, it closes the circuit and the buzzer sounds.

If the buzzer casing is marked “+” and “−,” connect the corresponding leads to the battery holder’s positive and negative terminals. Reversing the polarity may stop a particular model from working, so check the markings before switching it on. This circuit uses an active buzzer: it only needs power to sound.

Secure the bare wire sections so they don’t touch each other when dry or directly connect the electrodes: that would close the circuit and trigger a false alarm without water. Place only the electrode contact parts on the floor; keep the battery holder and buzzer away from water.

How do you test the alarm before installation?

Test the alarm in three stages: first with dry electrodes, then with a damp cloth, and finally after wiping the contacts dry. Insert the AAA batteries before testing: if the electrodes aren’t touching, the buzzer should stay silent.

  1. Touch both electrodes with a damp cloth. The moisture should form a conductive bridge between them, making the active buzzer sound.
  2. Wipe the electrodes and check that the sound stops. If the buzzer keeps sounding, make sure the electrodes aren’t touching and no moisture remains on the contacts.
  3. Check that the wires are secure, then repeat the test on the surface where the electrodes will sit—for example, near a washing machine or sink.

What to check before positioning the sensor

A two-electrode alarm has two important states: dry contacts leave the circuit open, while moisture between them activates the buzzer. Testing the sensor in place can reveal loose wires and confirm that the electrodes sit on the chosen surface where water can reach both.

Where should you place the sensor near a washing machine or sink?

Place the electrodes of a water leak sensor near a washing machine or sink at the lowest point on the floor that water could reach. Don’t tuck the contacts under the washing machine: keep them visible and make sure you can check that they’re touching the floor.

By a sink, place the electrodes under the trap or near the water-supply hose connections—where water is most likely to appear if there’s a leak. Keep the battery holder in a dry spot, away from places where water can collect.

Don’t cover the electrodes with a mat: it may prevent them from contacting the water. Don’t place them on metal that could connect the contacts. After washing the floor, dry the sensor, then test it with a damp cloth.

When might a DIY sensor fail or give a false alarm?

What to keep in mind

A DIY sensor with two contacts might not detect a small leak, or it might give a false alarm: the result depends on the water’s composition, the distance between the electrodes, and the condition of the contacts. Pure water conducts electricity less effectively than water containing dissolved impurities, so the same puddle may connect the electrodes differently.

  • Water composition: Dissolved impurities improve conductivity compared with pure water, so a DIY sensor’s sensitivity depends on the liquid.
  • Gap between contacts: If the gap is too wide, a small puddle may not close the circuit; if it’s too narrow, the electrodes are more likely to touch accidentally and trigger a false alarm.
  • Condition of copper contacts: Oxidation can weaken the connection over time. Inspect the electrodes and replace them if you see deposits.

This kind of sensor only sounds an alarm: it doesn’t shut off the water or send notifications to your phone. It shouldn’t be considered a replacement for a factory-made sensor with an automatic valve, which can stop the water supply.

How does a DIY alarm differ from a ready-made sensor?

A DIY alarm differs from a ready-made sensor in that it only alerts you to moisture and requires you to check it yourself, while a ready-made device may connect to a smart home and take part in automations. A DIY battery-and-buzzer circuit will work only if the power supply, contacts, and buzzer are all functioning; on its own, it won’t send a phone notification or shut off the water.

What to check when choosing

The Aqara Water Leak Sensor is designed to work in a smart-home ecosystem, but notifications and automation scenarios require compatibility with a specific hub. Check the sensor’s protocol and hub requirements: having an app alone isn’t enough for integration.

  • DIY circuit: A battery and buzzer provide an audible signal when they contact moisture; you’ll need to check it manually, paying attention to the battery and contacts.
  • Ready-made sensor: The Aqara Water Leak Sensor can send an event to a smart-home ecosystem when used with a compatible hub.
  • Water shutoff: Models with an electric valve can stop the water supply; a simple buzzer circuit can’t do that.
  • Installation without mains power: A battery-powered alarm may suit a rental, but before buying a ready-made device, check its protocol and compatibility with your hub.

Frequently asked questions

Can I connect the sensor to a 230 В outlet?
No. Use a 3 В battery holder for this DIY circuit; mains voltage near water is dangerous.
Why doesn’t the buzzer sound when water touches the contacts?
Check the polarity and make sure the buzzer is an active model rated for 3 В. Also wipe the electrodes and check that conductive moisture is touching both contacts at the same time.
Can I leave the sensor unattended?
You can leave it in place after testing the alarm, but the DIY circuit won’t send notifications to your phone or shut off the water. Check the batteries and contacts periodically.
Will the sensor help protect a washing machine?
It can sound an alert if water reaches the electrodes, but it won’t stop the water supply. Automatic shutoff requires a separate compatible valve and control system.
Written byDmitriy Lastochkin

Дмитрий специализируется на программном обеспечении и приложениях, исследуя их функциональность и влияние на повседневную жизнь. Его подход основан на тщательном анализе и тестировании, чтобы предложить читателям самые актуальные и полезные решения.