Introduction: Is My Fridge Door Open?!

About: I build products which solve real world problems.

Ever left your fridge door open? Ever it costed you 3x your eletricity bill because of your fridge door open?

Here i'll show you a smart technequre where you can use your LinkitONE and get SMS if your fridge door for open for more than 120 seconds.

Step 1: What Do You Need?

1 . LinkitONE board

2. Jumpers

3. Breadboard

5. LinkitONE GSM antena

6. Battery pack

7. Pressure sensor

8. A fridge

Step 2: Hacking Into the Fridge

Look for places where we can attach a pressure sensor to the setup so that we can sense if the door was ope. I found that to be the edge of my fridge.

Step 3: Adding the Pressure Sensor

Attach the pressure sensor to the breadboard carefully. Its terminals are very sharp so do take care of that.

Step 4: Connecting the LinkitONE

Now connect the LinkitONE to your circuit. Then you are done!

Step 5: Finalizing the Setup

Now finalize the setup by connecting the LinkitONE to the fridge. Make it fixed with some duct tape.

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. After this move to next step and finalize the circuit.

Step 7: Writing Some Code

The code is really simple here!

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

CODE:

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

#include<LGSM.h>

void setup() {

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

char doorn[14]="xxxxxxxxxx";

}

void loop()

{

int myanalogreading=analogRead(9);

if(myanalogreading<500) {

char doortxt[200]="Someone At Door!";

sms.beginSMS(doorn);

sms.println(doortxt);

sms.endSMS();

}

delay(500);

}

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

Now burn this code and then lets start playing!

Step 8: Testing It Out!

Now test it out!

Keep your door open!

And you get an alarm notification!