Make a moisture sensor
Build a simple moisture sensor using two probe nails, wires, a resistor, an LED, and a small battery to test soil dampness with adult supervision.

About this activity
Build a simple moisture sensor using two probe nails, wires, a resistor, an LED, and a small battery to test soil dampness with adult supervision.
What you need
Step by step
- 1
Step 1
Gather all the materials on a table so everything is ready before you start.
- 2
Step 2
Ask an adult to stay with you and help when you handle the battery and tools.
- 3
Step 3
Use the wire stripper or scissors to strip about 1 centimeter of insulation off each end of the three wires.
- 4
Step 4
Wrap one stripped wire around the head of the first nail and secure it with electrical tape so the metal is connected.
- 5
Step 5
Wrap a second stripped wire around the head of the second nail and secure it with electrical tape.
- 6
Step 6
Find the LED long leg and twist or tape the resistor to that long leg so they are connected firmly.
- 7
Step 7
Tape the free end of the resistor to the positive side of the battery so the resistor touches the positive terminal.
- 8
Step 8
Twist or tape the wire from the first nail to the short leg of the LED so the LED is connected to that nail.
- 9
Step 9
Tape the wire from the second nail to the negative side of the battery so the circuit can be completed through the soil.
- 10
Step 10
Push both nails into the soil in the pot or cup about 2 centimeters apart so the nails do not touch each other.
- 11
Step 11
Pour a small cup of water onto the soil near the nails to moisten the soil and help it conduct better.
- 12
Step 12
Watch the LED to see if it glows brighter when the soil is wet and dimmer when the soil dries.
- 13
Step 13
Share a photo or video of your finished moisture sensor project on DIY.org
Fun facts
How do you build a simple moisture sensor with nails, wires, an LED and a battery?
Strip two lengths of insulated wire and attach each to a nail (these are the probes). On one wire, connect an LED and a resistor in series to a small battery; on the other wire connect directly to the battery’s other terminal. Place the two nail probes a few centimetres apart in soil. If the soil is damp it completes the circuit and the LED will glow. Always work with an adult to avoid shorts and check connections before testing.
What materials do I need to make a DIY soil moisture sensor?
You’ll need two probe nails or galvanized screws, insulated hookup wire, a resistor (about 220–330 Ω), a low‑voltage LED, and a small battery (a 3V coin cell or two AA cells). Optional helpful items: a breadboard, alligator clips, wire strippers, electrical tape, and a multimeter. Have an adult nearby for cutting wires, handling batteries, and supervising the build and testing.
What ages is this moisture sensor activity suitable for?
This activity suits children about 8 years and older with adult supervision. Kids 8–11 can assemble parts and learn basic wiring with close guidance; ages 12+ can handle more of the wiring and troubleshooting independently. For younger children (under 8), make it a guided demonstration where they observe and help place probes in soil while adults do the electrical steps.
What safety tips should we follow when building and testing the sensor?
Use only low‑voltage batteries and supervise all steps. Prevent short circuits by keeping exposed wires separate and using a resistor with the LED. Wash hands after handling soil, remove batteries when not testing, and keep electronics dry (don’t use mains power). Dispose of batteries properly and avoid sharp probe edges around small children. This project safely teaches circuits, observation, and plant-care basics when adults provide guidance.
Watch & Learn
Need help?
What can we use instead of a wire stripper or nails if those are hard to find?
If you don't have a wire stripper you can carefully use scissors to strip about 1 centimeter of insulation as in step 3, and if you don't have nails you can straighten metal paperclips, wrap the stripped wire around them, and push them into the soil instead of nails.
My LED won't light — what parts of the setup should I check first?
If the LED doesn't glow, check that the resistor is taped to the battery positive terminal, the LED's long leg is connected to that resistor, the short leg is connected to the wire from the first nail, the second nail's wire is taped to the battery negative, each wire has about 1 cm stripped, and the soil is moist so the circuit can complete.
How can I change the activity for different ages?
For younger kids have an adult pre-strip wires, wrap the resistor to the LED and insert the nails while the child watches pouring water and observing the LED, and for older kids let them strip wires, twist or tape connections themselves and use a multimeter to measure how LED brightness changes with soil moisture.
How can we extend or personalize the moisture sensor project?
You can add a small toggle switch between the resistor and the battery, use multiple nails at different depths to compare LED brightness as the soil dries, decorate the pot, and then share photos or a video of the finished sensor on DIY.org.