Rain Detector Alarm
A buzzer sounds when the first drops fall on a sensor plate. The plate has two separate tracks that the water joins.
Bill of materials
Everything you need to build it, with the reference you will see on the schematic.
| Qty | Part | Ref. |
|---|---|---|
| 1 | Rain sensor plate (two tracks) | PR1 |
| 1 | 1 kΩ resistor (brown-black-red) | R1 |
| 1 | 100 kΩ resistor (brown-black-yellow) | R2 |
| 1 | BC547 NPN transistor | Q1 |
| 1 | Active buzzer (3 to 24 V) | BZ1 |
| 1 | 9 V battery with snap clip | BT1 |
| 1 | Breadboard (400 tie-points or more) | |
| 4 | Jumper wires |
Missing parts? The kits recommended by Impeca Tech include almost all of them. See the kits
Schematic & wiring
On the left, the circuit diagram; on the right, the same circuit built on a breadboard. Both connect exactly the same things.
Wire it step by step
-
Place the components
- 1 kΩ resistor R1 (bands: brown, black, red, gold): one leg in 4i and the other in 7i (either way round).
- 100 kΩ resistor R2 (bands: brown, black, yellow, gold): one leg in 7f and the other in 10f (either way round).
- BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 8h, base (B) in 9h, emitter (E) in 10h.
- Active buzzer BZ1: the long leg (marked +) in 3f and the other leg in 6f. Reversed, it will not sound.
-
Add the jumper wires
- Red wire: from 3j to the + (red) rail.
- Orange wire: from 6j to 8j.
- Turquoise wire: from 7j to 9j.
- Black wire: from 10j to the − (blue) rail.
-
Connect the probe
- Rain sensor plate (PR1): one wire to the + rail and the other wire to 4j.
-
Connect the battery
- Connect the 9 V battery to its clip: the clip’s red lead to the + (red) rail and the black one to the − (blue) rail. Do this last, once everything else is in place.
-
Test the circuit
- With the plate dry the buzzer stays silent. Let a few drops of tap water fall so they join the two tracks: it sounds. Wipe the plate with a cloth and it stops. If a single drop does not trigger it, add more water or bring the tracks to 1–2 mm apart.
How to read the holes: the letter is the row and the number is the column of the breadboard (for example 7f). The red (+) and blue (−) rails are the two long lines along the edge.
How does it work?
- 1A drop falls on the plate
- 2The water joins the two tracks
- 3A small current reaches the base of Q1
- 4The buzzer sounds
The sensor plate is a “comb” of two copper tracks that do not touch. When dry, no current flows between them. Rain joins them and lets a small current through (in the simulation, about 47 kΩ of rainwater) that R1 (1 kΩ) feeds to the base of Q1: the transistor saturates and the active buzzer gets about 28 mA and sounds. R2 (100 kΩ) holds the base at 0 V: without it, damp or dew on the plate could leak enough to set the buzzer off. With R2, a 3 MΩ leak (dew or mist) triggers nothing, and a downpour (≈ 10 kΩ) sounds just as loud. To use it outdoors keep the breadboard and battery under cover and put only the plate outside.
Testing & troubleshooting
What you should see
- Dry plate
- Buzzer currentunder 1 µA
- Rain on the plate (≈ 47 kΩ)
- Buzzer current≈ 28 mA
- Voltage across the buzzer≈ 8.82 V
- Downpour (≈ 10 kΩ)
- Buzzer current≈ 28 mA
- Dew or mist on the plate (3 MΩ leakage)
- Buzzer currentunder 1 µA
Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.
If something does not work
It sounds without rain
There is damp or dirt between the tracks: clean them with a cloth and isopropyl alcohol and dry them. Also check that R2 is 100 kΩ (brown, black, yellow) and connected between the base of Q1 and GND.
It does not sound with a drop
A small drop may not join the tracks well: bring them closer or tilt the plate so the water runs between them. Check the buzzer is active and its + goes towards the battery, and that the tracks are free of oxide.
Want to automate this circuit with code?
Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.