Introduction: Water Tank Overflow Notifier With LinkitONE

About: I build products which solve real world problems.

Does your water overflow every time? Do you forget to close your water valve when your water tank is full? Then I have a solution to the problem!

Here i'll show you how to make a water overflow notifier that notifies you when ever your water tank leaks. You will automatically get an SMS when your water leaks.

Step 1: What Do You Need?

1 . LinkitONE board

2. Water tank.

3. Breadboard

5. LinkitONE GSM antena

6. Battery pack

7. Relay module

Step 2: Hacking Into the Water Tank!

Now we'll look for all places where we can connect a water sensor and then detect if there's any current flowing (or water is there or not).

I found the top of my water tank to be the right place to install the device easily. So i fixed my breadboard and Linkit there.

Step 3: Attaching the Electrodes

Now we need to attach the electrodes which will detect water leaks. We'll attach it from the cap above the tank.

Step 4: Attaching the LinkitONE

Now attach the LinkitONE to the electrodes. Check it carefully so that water does not leak and destroys the board..

Step 5: Finalizing the Setup

Now finalize the setup by sticking it to the tank. It also makes it look cool :P

Step 6: Setting Up GSM and SMS

Set up the GSM and SIM card by inserting it into the card slot. Attach the GSM antenna as well.

Do it carefully as we are doing everything in water!

Step 7: Writing Some Code

The code is really simple here!

We're just taking some digital readings from sensor, detecting if circuit is completed and processing them and then sending SMS.

CODE:

------------------------------

#include

void setup() {

Serial.begin(9600); pinMode(8,INPUT);

char smsnum[14]="xxxxxxxxxx";

}

void loop()

{

int iread=digitalRead(9);

if(iread==1) {

char textforsms[]="Fridge door open! Please check!";

sms.beginSMS(smsnum);

sms.println(textforsms);

sms.endSMS();

}

delay(50000);

}

------------------------

Now burn this code and then lets start playing!

Step 8: Testing It Out

Now test your system out!

Just overflow get once!

Excited? Impress your friends!