Step 2: Components/Hardware List

Step 3: Project Overview

PhidgetSBC4 will run our program code (written in C). It will be connected to the water sensor through the built in VINT Hub.

If the water sensor indicates that water is present, the SBC will use the email to text feature that most wireless carriers support to send a text message.

Step 4: Prepping Hardware

Our sensor will likely be coming into contact with water (especially during testing), so it is important that we protect the PCB components. To do this, we used a conformal coating on the PCB.

Step 5: Writing Code

All the code for this project is already written and is included in the file waterLeakDetector.c, so if you want to implement it, all you will have to do is modify a few things (serial numbers,email address, etc.) and compile it.

Important: before installing, you will have to set up libcurl on your SBC. Open the terminal and enter the following command:

sudo apt-get install libcurl4-gnutls-dev

For more information on how to compile C programs on the SBC, check out these links:

If you want to use the code above, you will have to use something like the VINT Hub Phidget and slightly modify waterLeakDetector.c You will also need to reference our Linux page for information on how to install the Phidget libraries.