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. ;)