Pooja Baraskar
Published © GPL3+

Burglar Alarm with Sending SMS and Email from IoT device

Lets make an easy and effective Burglar Alarm with PIR sensor.

BeginnerFull instructions provided2,309
Burglar Alarm with Sending SMS and Email from IoT device

Things used in this project

Hardware components

Grove starter kit plus for Intel Edison
Seeed Studio Grove starter kit plus for Intel Edison
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
Buzzer
×1
LED (generic)
LED (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
usb cable
×1
Power Supply
×1

Story

Read more

Code

Code for PIR Sensor

C/C++
    //Load Grove Motion module  
    var grove_motion = require('jsupm_biss0001');  
    // Instantiate a Grove Motion sensor on GPIO pin D2  
    var myMotionObj = new grove_motion.BISS0001(2);  
    setInterval(function()  
    {  
        if (myMotionObj.value())  
        {  
           BlinkLED();  
           melody();  
           v.saveValue(1);  
           console.log("Detecting moving object");  
          
        }  
        else  
            console.log("No moving objects detected");  
            v.saveValue(0);  
    }, 1000);  
      
    // Print message when exiting  
    process.on('SIGINT', function()  
    {  
        console.log("Exiting...");  
        process.exit(0);  
    });  

Credits

Pooja Baraskar

Pooja Baraskar

25 projects • 178 followers
Pooja Baraskar is an accomplished software engineer, inventor, and technical author with over a decade of experience in the tech industry.

Comments