DIY Plant Moisture Sensor W/ Arduino

by millerman4487 in Circuits > Arduino

33225 Views, 90 Favorites, 0 Comments

DIY Plant Moisture Sensor W/ Arduino

IMG_20170115_174349683.jpg
IMG_20170115_174414090.jpg

See this project on my website!

This project will calculate the water content of soil around a plant by measuring the dielectric constant (the soil's ability to transmit electricity) and will alert you with a red LED when the plant needs more water or a blue one when it has too much.

Materials

IMG_20170115_190554415.jpg

You will need to gather these things in order to build this project.

Create Sensor Prongs

587d0b8a8852dd646f0032da.jpeg
587d04edef665a25b40045a9.jpeg

You will need to repeat this step twice (once for each prong).

  1. Begin to tighten the nut around the bolt
  2. Slide the end of the long jumper cable between the nut and the head of the bolt.
  3. Finish tightening the nut until you are unable to pull out the jumper cable

Create the Circuit

Untitled Sketch_bb.png
Untitled Sketch_schem.png
587c1da11441aaa03e00098e.jpeg

Follow the schematic or the breadboard image - whichever one works better for you. The wires labeled "out" are the two prongs you just created.

Upload This Code

Pretty self explanatory here. Just upload this code to your Arduino!

Place Sensor Prongs

IMG_20170115_174414090.jpg
IMG_20170115_174359797.jpg
  1. Insert the prongs you made about 1" to 1.5" apart in soil close to the plant you want to monitor.
  2. Give the plant a healthy amount of water and open the serial monitor
  3. It should give you readings around 25 - 30% if you gave it the right amount of water
  4. If not, try moving the prongs around to get it right (or you just added too much water)

Outdoor Protection

If this is going outside you will want to put your circuit inside of a Tupperware or other waterproof container to protect it from the elements. Then drill some holes for the sensor wires to come through and add a battery box to power it (see here for how to do that). Mine is not going outside though, and will be fine without a container.