Chapter 4Water Leak Notifier
As demonstrated in our previous project, the Pi can be used as an inexpensive laptop or desktop replacement, capable of running Python scripts that can also run on other operating systems. What makes the Pi so interesting in the home automation world is its diminutive size and expansive ports and GPIO pins. Sensors and actuators can be attached to the Pi via these interfaces, giving the Pi a wide spectrum of inputs to process. One of the simplest of inputs is a switch.
For this project, we’ll use a very basic water sensor that turns on (completes or closes an electrical circuit) when water is detected across its two probes and turns off (breaks or opens an electrical circuit) when water is no longer present across ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access