IoT Based Home Security System ( Raspberry + Cayenne + PIR Sensor )




Introduction: IoT Based Home Security System ( Raspberry + Cayenne + PIR Sensor )

About: We run YouTube channel and provide some video tutorials on electronics and programming and also videos on cool projects - how to make them, tech news and more. Subscribe to our channel. :)

Hello guys, in this tutorial we will show you how you can make your own IoT-based home security system. We will use an IoT Platform named Cayenne for this purpose.

We have made one video previously about how to start with cayenne and basic setup. You can watch that video if you haven’t.

So here is the basic concept. Our system will be connected to the Internet constantly and will monitor the house. If some unwanted situation comes, then it will send you a message, irrespective of the fact of your current location. So then you can inform police and security of your apartment or directly close the door of your home from your mobile itself.

Sounds pretty neat. Right? But to make things simpler, we will do only the message part here in this video. So, let's begin.

Don't forget to visit and subscribe to our channel -

We have made a video explaining this tutorial. Do check it out! :)

Step 1: Gather the Componenets

Things you will need before staring this project:

  1. Raspberry Pi (We are using Model 3B. It will work with any version)
  2. PIR Sensor
  3. 5V 2A Power Supply
  4. Jumpers
  5. Network access

Step 2: Make the Circuit

The circuit is pretty simple and straight forward. The PIR sensor will be connected to the Pi by three wire - Power, ground, output. The Pi will be connected to the Internet via LAN cable. Then, power ON the circuit.

Circuit schematic -

Step 3: Do the Necessary Setup

Open up your laptop or desktop and do the following.

  • Open mydevice website and log in with your credentials.
  • Click on 'add new' and add a device name 'motion sensor'.
  • Edit the properties and change the channel to 18 and change the icon to bulb. Save and continue.
  • Now add a trigger. Drag and drop your logic and add your mobile number to the field. Save the trigger.
  • You are all set up go and the system is online.

Step 4: It's Done!

Your system is ready. Just keep it ON and forget about it. It will do its work at the right time by sending you a message that someone is there in your apartment without your permission and do the necessary steps. So as you can. see this project is very simple and most of the tough job is handled by Cayenne.

If you liked our tutorial, please subscribe to our youtube channel -

We will see you again in another cool electronics project video and another Instructables. Until then, adieu. ;)

Be the First to Share


    • Make It Modular: Student Design Challenge

      Make It Modular: Student Design Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Origami Speed Challenge

      Origami Speed Challenge



    Question 2 years ago

    Instead of raspberry pi 3b we can use ardunio nano or no ????
    Plz reply me fast.


    5 years ago

    Using a Raspberry PI3 (e.g. a quad core computer) to monitor a single binary digital sensor (on/off), and having that connected thru Ethernet is a bit... well... complicated, bulky and expensive. (and it's not worth considering to power that with a battery pack)

    Think about ESP8266 (microcontroler + Wifi). It costs ~2$, it's wireless (no more messy Ethernet cables), smaller, draws 100+ times less power and it's yet far more than powerful enough to do the job!

    Being Engineers
    Being Engineers

    Reply 5 years ago

    Yes, I second you. Monitoring only one digital input is not efficient. But I showed it here as a demonstration. User can control several relays from other gpio. Then it can be connected to a gsm module to call or send msg to police and etc. And other programs can run at the same time, like monitoring room temperature, humidity.

    But for only PIR sensor input and network we should work with other smaller low powered devices. Thanks for your comment.