Humidity Sensor-Driven Sprinkler System

Hook up a DHT22 temperature and humidity sensor to an Arduino attached to a stepper motor that drives a water spigot attached to a garden hose connected to a lawn sprinkler.[116] When the temperature is high and the humidity is low for a prolonged duration, turn on the stepper motor crank valve on the water spigot. Let the water run for ten minutes and then shut off the water valve. Calculate the volume of water used based on the duration it was running. Do this by first calibrating the number of seconds it takes to fill up a liter (or gallon, for the metric system-challenged) at the valve setting established by the stepper motor crank.

For example, if it takes thirty seconds to fill up a liter container, ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.