IOT based Home automation and Security system

IOT has become huge trend in the last couple of years. With growing needs in connected devices many companies have shifted the attention to iot market. Today we are going to share a simple project which we have built –  IOT based  home automation and security systems using Arduino MKR1000. Hope you will like this project.
IOT based Home automation and Security system


  • Arduino MKR 1000
  • PIR Sensor
  • Gas sensor
  • Relay circuit
  • Bulb
  • AC motor
  • Diodes(1n 4007)


  • Blynk App (Android/ iOS)


Blynk is an IOT software platform which is available for both android and iOS. This platform is very much like a digital dashboard in which you can see all information from your connected devices. And the most of all Blynk supports many famous development boards like Raspberry Pi, Arduino, ESP8266 and other IOT platforms .

In our project this platform is used for following purposes

  • Turn ON/OFF bulb and fan.
  • Readings can be viewed from PIR and Gas sensor values.
  • Monitoring of sensor values are made possible




In this schematic PIR sensor and gas sensor is used to detect atmospheric conditions and the output from these sensors is fed into Arduino board. On the other hand lamp and fan is interfaced to microcontroller using couple of relays. The relay acts as an activator for both the fan and bulb. Transistor is added between relay and microcontroller pins to provide sufficient current. Lamp and Fan is connected to phase and neutral lines of AC power supply. This schematic is just for prototyping purpose of our home automation project, you can add devices to it with minor changes in the schematic.


This sensor is used to detect any motion or intrusion in a room. Placing at the entry door,  this sensor is used as an intrusion detector in our project. This sensor outputs the intrusion in means of readings to microcontroller. This output value in turn will be displayed in the Blynk app of users smartphone.


This sensor is used to detect any gas leakages in our home. If any gas leakage occurs the elements in gas sensor will be ionized. The sensor module outputs voltage level depends upon the intensity of gas present. This is fed into the analog pins of Arduino as well. Then it will be display in the Blynk app.


This is powerful Arduino board which is specifically built for the purpose of IOT. The board consists of in built WIFi controller making it a best solution for IOT prototyping by eliminating the necessasity of adding external hardware for WiFi connection.

Read More:  IOT based Home automation and Security system

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top