In this tutorial I will show you how to build a flood or water presence sensor and connect it to your PrivateEyePi alarm system to either trigger the alarm or send you email alerts. This is useful for installing in areas of your house where you are worried about a water leak that could cause expensive damages.
How it works
This sensor has strips of metal plated probes that when in the presence of liquids change the resistance that will activate the internal switch. It can be mounted for example on a skirting board, with Raspberry Pi some height above, via the attached wire. When the liquids drain away from the probe the resistance will drop and the switch contacts will open again. Liquids of very poor viscosity may not drain away from the probes and will cause the switch contacts to remain closed.
What you will need
Water sensor wires to a Raspberry Pi
Construction
Water Sensor Wired to Raspberry Pi
Figure 1 - Water sensor wired to the Raspberry Pi
Figure 2 - The GPIO header of the Raspberry Pi
Using Trigger Based Rules
Figure 5 - Define rule based triggers
Figure 6 - Sensor and status on the dashboard (battery indicators given for wireless sensors)
|