Automated sprinkler controller
For the last recipe of the chapter, we are going to see how to make a cool project to automate your garden: an automated sprinkler controller that also works via the cloud. We'll have two Arduino boards communicating with each other: a first board to measure the soil moisture, and a second one to control a pump to water the plants or anything else in your garden.
Getting ready
The project will be composed of two parts again. The first part will simply be an Arduino MKR1000 board, along with a moisture sensor based on the SHT10 sensor. The second part of the project will be a simple Arduino board as well, connected to a relay. The relay can then be used to control a little pump or sprinkler that you already have.
This is the list of components that are required for this recipe:
Soil moisture sensor (https://www.adafruit.com/products/1298)
Relay (https://www.pololu.com/product/2480)
10K Ohm resistor (https://www.sparkfun.com/products/8374)
Let's now assemble the project...