Smart Home Security System With Automatic Phone Calling System Using Arduino With The IoT

Ashwini kumar sinha


CCTV (close-circuit television) camera systems are installed to protect your home and shops from burglary and break-ins. But with our busy lives, it is not possible to monitor it 24*7. So, we need a more reliable and robust security system that can notify us when someone breaks into our shop or home.

When a thief enters a jewellery shop, the shop owner automatically gets a notification on his/her phone. Also, the device automatically calls the cops while the thief is busy stealing the valuables. This is possible with our smart device that we are going to make.

Change Video Language

To make this project first gather the following components.

Bill Of Material

Arduino Coding


After gathering all the components, open the Arduino IDE and write the following code (Fig 1).

First of all, take a variable for motion sensor pin. Here we have used Arduino digital pin 7. After that create a set-up function and set the Bluetooth baud rate (here we have used baud rate 9600) and set the pin mode for PIR sensor as input. Then in the next part of the code, create a loop function and under that create an ‘if condition’ that checks the status of motion detection by PIR sensor. When the PIR motion sensor detects any human motion, the Arduino sends a number over Bluetooth to our Android app that we are going to make in next part.

Fig 1. Arduino Code

App making

To make the app, use MIT App Inventor. First, create a layout for an app  and add the following components (Refer fig  2 ).

  • Vertical arrangement
  • A list picker
  • 3 Text levels
  • A text bar
  • Bluetooth client
  • Phone call
  • Clock Timer
Fig 2. App Layout

After adding all the components and creating layout, go to phone caller components and set the number to which you want to get call. You can either set your own number or any other number (Refer Fig 3 ).

Fig 3. Setting phone number in phone call component

Now, join the MIT app inventor code blocks according to Fig 4.

Fig 4. MIT app inventor code blocks


Now connect the components as illustrated below (Refer fig 5).

Arduino Components
Pin 7 PIR Motion sensor OUT
5V VCC of Bluetooth and PIR
GND GND of Bluetooth and PIR
RX Bluetooth TX
TX Bluetooth RX


Fig 5. Connection Diagram

Testing and working

Cross check all the connections and then power the Arduino with battery and fix the device in a room. After that connect the app that we have created. Now, whenever anyone enters your room, it will send a number to the app and the app will automatically call on the phone number that we have set earlier. So, now you can fix this device in your home and leave for a vacation without worrying about security.

Download Code



  1. excellent issues altogether, you just won a new reader.
    What could you suggest about your publish that you made some days ago?
    Any positive?

  2. Good day Sir,
    I like this project, so, where and how can I buy the components so that I can build it.
    Kind regards

  3. Hello mem.. I want more details about that project. Bcz you provide connection diagram and i want circuit diagram and overall block diagram . So that i can put on my PowerPoint presentation.. Please share all the details related to thi project. Reply me as soon as possible


Please enter your comment!
Please enter your name here