{"id":59896,"date":"2024-12-10T08:34:26","date_gmt":"2024-12-10T13:34:26","guid":{"rendered":"https:\/\/www.engineersgarage.com\/microcontroller-projects-tf\/arduino-home-security-with-gsm-pir-and-reed-switch\/"},"modified":"2025-01-09T07:47:35","modified_gmt":"2025-01-09T12:47:35","slug":"arduino-home-security-with-gsm-pir-and-reed-switch","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/","title":{"rendered":"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch"},"content":{"rendered":"<div id=\"content\">\n<div id=\"wsite-content\" class=\"wsite-elements wsite-not-footer\">\n<div><\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">\u200bIn this tutorial i am going to make an arduino home security system. One can install this diy arduino security\u00a0system project on his home main door. The diy arduino security system checks two things. First it checks if some one approached the door? Second it checks if door is opened by the person? When the former two conditions meet an sms\/text message will be send to the owner of the house. The presence\/motion\u00a0of the person in front of the door is detected by the pir motion detector and door opening\u00a0is checked by door contact switch OR reed switch. Both the sensors(pir motion and reed switch) are connected to arduino uno and any intrusion detected by the sensors is conveyed\u00a0instantly to arduino uno. Arduino as an intrusion alert sends a sms\/text message to the owner mobile number using gsm module.<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-gsm-pir-and-door-sensor-security-system_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-gsm-pir-and-door-sensor-security-system_orig.png\" alt=\"Arduino Gsm Pir and door sensor security system\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Arduino Gsm Pir and door sensor security system<\/div>\n<\/div>\n<\/div>\n<div>\n<div id=\"916517753974200772\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>PIR motion detection sensor<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">I used popular hcsr501 passive infrared motion detection sensor in the diy project. It can detect motion at a max distance of 7 meters. Sensitivity range of hcsr501 pir motion detector can be set by rotating the variable resistor\/potentiometer mounted on the circuit board of hcsr501 pir motion sensor. It also has a second variable resistor\/potentiometer which is used to set the <\/span><strong><span style=\"font-size: medium;\">delay time <\/span><\/strong><span style=\"font-size: medium;\">i will talk about it later(With Out pin of Hcsr501). Hcsr501 pir sensor has 3 pin. Two are power pins. Vcc is connected to +ve lead of power supply and Gnd is connected to -ve of power supply. The third pin is <strong>out pin. <\/strong>It normally remains low.\u00a0When pir sensor detects\u00a0presence\u00a0of infrared emitting\u00a0body in its range it sets the <strong>out pin<\/strong> high. Now the question is For how long does pir <strong>out pin<\/strong> remains high once the presence of person is detected? For this purpose\u00a0the second variable resistor\/potentiometer is present on hcsr501 pcb board you can set the <strong>delay time<\/strong> or <strong>out pin high time<\/strong> using the second variable\u00a0resistor.<br \/>\nSo where the pir sensor is to be mounted in order to detect the presence\u00a0of person. It must be mounted on the upper portion of inlet of door. Below diagram best illustrates\u00a0the mounting of pir above the door.\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/pir-sensor-on-door-top-covering-area_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/pir-sensor-on-door-top-covering-area_orig.png\" alt=\"Picture\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Pir sensor installation above door and area covering angle.<\/div>\n<\/div>\n<\/div>\n<div>\n<div id=\"880747776309672663\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Sim900 Gsm module(Arduino Gsm)<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">I am using <a href=\"\/\/www.sainsmart.com\/products\/sim900-gprs-gsm-board-quad-band-module-kit-for-arduino\" target=\"_blank\" rel=\"noopener noreferrer\">SainSmart Sim900 GPRS\/Gsm Module<\/a> in the project. Its easy to use and its documentation is pretty straight forward. I worked with many other gsm modules build on <a href=\"\/\/simcomm2m.com\/En\/\" target=\"_blank\" rel=\"noopener noreferrer\">SIMCom<\/a>\u00a0sim900 chip. I found SaintSmart to be best of all. The Chinese\u00a0cheap sim900 gsm modules are really hard to use and due to bad circuit designs their power requirements\u00a0differ from each other. SaintSmart gsm module works on 5 volts. It has five pins. In five three are power pins. Two ground pins and one +ve power pin. We supply power 5 volts to +ve pin and ground the Gnd pins. The remaining two pins are Uart pins.<br \/>\nAll sim900 gsm modules communicates with external controllers\/microcontrollers on Uart protocol. Uart protocol has two pins. One is TxD(Transmit) and other is RxD(Receive). In order to send and receive data to sim900 gsm module the external microcontroller must also have a Uart port. In simple words Uart communication takes place between two Uart ports. Gsm sim900 module has Uart port so our external microcontroller must also have one to communicate with gsm module. In Uart communication we connect TxD pin of first device to RxD of second one. Similarly Rxd of first one is connected with TxD of second one. After connection we set the baud rate of communication in software. Baud rate is simply the speed of communication\u00a0between two devices communicating on Uart port. In circuit diagram of the project it will be cleared to you about uart connections.<br \/>\nSim900 gsm module works on <strong>AT<\/strong> command set. Their are lot of <strong>AT<\/strong> commands if you go through the data sheet of sim900 chip set. We will use in our project only ones which a necessary to send an sms text message. I have an another tutorial on how to send an Sms with sim900 gsm module. You can visit it by clicking the below button.\u00a0\u00a0<\/span><\/div>\n<div style=\"text-align: left;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/gsmsim900d-with-arduino-uno.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Gsm Arduino: Send an sms with Sim900 <\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<div>\n<div id=\"429714238929725855\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Door contact switch\/Reed switch<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">A reed switch is an electrical device operated using a magnet in place. It consists of two half&#8217;s. One half contains actual switch and the other half contains just a magnet in it. When the magnetic half is brought near the switch half it starts conducting electricity. So how does it all happens? Actually the switch half contains a pair of magnetic rods. Normally when their is no magnetic filed present near switch the rods are a part from each other(Open circuit &#8211; No electric path). When we bring the magnetic half near the switch half the magnetic\u00a0field\u00a0brings the rods close and when the strength of magnetic field\u00a0reaches the threshold limit the rods attach with each other(Making a physical contact &#8211; Path for electricity flow).<br \/>\nHow to install the door reed switch? We usually mount the switch half on fix\/immovable surface and the magnetic half is installed\u00a0on the moving surface.\u00a0In our case, i installed the magnetic half on door and the switch half on the wall near to door closing point. Both half&#8217;s must be in correct position and at correct distance to make a contact. Below you can see the correct placement and installation of door contact sensor.\u00a0 \u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-multicol\">\n<div class=\"wsite-multicol-table-wrap\" style=\"margin: 0 -15px;\">\n<table class=\"wsite-multicol-table\">\n<tbody class=\"wsite-multicol-tbody\">\n<tr class=\"wsite-multicol-tr\">\n<td class=\"wsite-multicol-col\" style=\"width: 50%; padding: 0 15px;\"><\/td>\n<td class=\"wsite-multicol-col\" style=\"width: 50%; padding: 0 15px;\">\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/door-contact-sensor-installation_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/door-contact-sensor-installation_orig.png\" alt=\"Door contact reed switch installation\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Door contact reed switch installation<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">The block and flow diagram of the aduino home security system is given below. Pir motion detector and magnetic door switch sends their respective status to arduino. Arduino then decides what to do next with the inputs from pir and door sensor. If arduino finds both the sensors transmitted the positive status. It alerts the gsm module to activate and send a text sms on hard coded single sim number.\u00a0\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-home-security-system-block-diagram_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-home-security-system-block-diagram_orig.png\" alt=\"Arduino home security system block diagram\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Arduino home security system block diagram<\/div>\n<\/div>\n<\/div>\n<div>\n<div id=\"157400106711577851\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Arduino Home Security &#8211; Project circuit diagram<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\">\n<p><span style=\"font-size: medium;\">Coming to the project circuit diagram. Only four I\/O pins of arduino uno are used in the project. Two pins are of Uart channel Pin#0 and 1 of arduino uno. The other two are Pin#8 and 9. Pin#8 of arduino uno is connected to pir motion sensor out pin and pin#9 of arduino uno is connected to door contact sensor. Pir motion detector and door contact sensor can be powered through the arduino +5 volt output. But i prefer to use an external power supply for powering the pir and door sensor.<br \/>\nDoor contact switch can be powered from +5v to +12v. I powered it with 5v power supply. If you input +12 volt to reed switch then you might need to insert a resistor in series with the reed switch because arduino pins are 5 volt tolerant and +12v(when contact is made) can destroy the input pin of arduino. When contact is made by reed switch the input voltage appears on the arduino digital pin. In our case on <strong>Door(Pin#9)<\/strong> pin. If the voltage is above 5 v it might destroy the input pin of arduino. So be careful before powering\u00a0the reed switch.<br \/>\n<strong>Note:<\/strong> I write +12 v due to the fact that door sensor is installed at a distance from the main microcontroller(Arduino our case) and after contact the voltage drops across wire due to length of the wire.\u00a0\u00a0<\/span><\/p>\n<p>Gsm module needs an extra power during sms sending time. Use an adopter which can supply continuous\u00a01 Ampere of current at 5 volts for powering sim900 gsm module. 1 ampere adopter is enough to power all the components(Arduino, Pir, Reed switch and Gsm module) used in the project circuit.<\/p>\n<\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-home-secuirty-system-with-pir-gsm-and-door-contact-switch_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino-home-secuirty-system-with-pir-gsm-and-door-contact-switch_orig.png\" alt=\"Arduino home security system with pir, gsm and door contact switch\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Arduino home security system with pir, gsm and door contact switch<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Coming to the code portion of the security project. First i defined the arduino digital pins which are going to interface with the pir motion detector and door contact switch(Arduino Pin#8 and 9). In the setup function i declared both the pins\u00a0<span style=\"color: #2a2a2a;\">(Arduino Pin#8 and 9)<\/span>\u00a0as input. Since we are reading the status of the sensors so we must declare them input. After declaring the arduino sensor interfacing pins as input. I went on for the Uart module of arduino. Arduino Uart module is present on arduino pin#0 and 1. To declare and start the arduino uart module in arduino ide we use<strong> Serial.begin()<\/strong> command. To set the communication baud rate we insert the baud rate value in circular brackets after the word begin. In our case i set the communication rate at 9600 bits per second and command used to initialize it is <strong>Serial.begin(9600)<\/strong>.\u00a0 \u00a0<\/span><\/div>\n<div>\n<div id=\"173440853913302003\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<div><script src=\"https:\/\/gist.github.com\/d-boz-wtwh\/36e9eeb6d56b9f7140117daafa854efa.js\"><\/script><\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\">\n<p><span style=\"font-size: medium;\">In the loop function two variables are declared <strong>S1<\/strong> and <strong>S2<\/strong>. Both variables are used to store the status of the pir and door sensor. The statement <strong>S1=digitalRead(door)<\/strong> is checking the status of the door sensor and storing the status in S1 variable. The statement <strong>S2=digitalRead(Out)<\/strong> is checking the status of pir and storing its status in <strong>S2<\/strong> variable. Next an if statement\u00a0is comparing the status of both sensors\/variable(<strong>S1<\/strong> and <strong>S2<\/strong>). If pir output is high and contact sensor is low then the control enters the body of if statement. In if statement body <strong>AT<\/strong> commands are used for sending a text message on a particular cell number.<br \/>\n\u200b<br \/>\nFor sending commands out by arduino on its Uart port\u00a0<strong>Serial.println()<\/strong> statement is used in arduino ide. First\u00a0\u00a0<strong>&#8220;AT+CMGF=1&#8221; <\/strong>is send. This command sets the sim900 gsm module in sms text mode. Then <strong>&#8220;AT+CMGS=&#8221;<\/strong> is send with <strong>&#8220;\\&#8221;+923425500809\\&#8221;&#8221;<\/strong>. Its actually the recipient sim\u00a0number or the number to which we want to send the sms. Back slash in the last statement is preventing the double quotations to be executed by arduino ide. Sim900 requires mobile number to be enclosed in double quotations. After the number comes the body\/text of the sms. I am sending my website name <strong>www.microcontroller-project.com<\/strong> as text. You can send what ever you want. Then comes the <strong>most important statement Serial.write(26)<\/strong>. To end message and to send it sim900 requires <strong>Ctrl+Z<\/strong> command. If we translate the Ctrl+Z in ascii code it translates to &#8217;26&#8217;. So at the end of the code we are sending <strong>Ctrl+Z\u00a0<\/strong>command to sim900 to send the text message.\u00a0 \u00a0 \u00a0\u00a0<\/span><\/p>\n<p><strong>Future Work<\/strong><br \/>\nThe project can be further upgraded by controlling the other appliances like light and alarms etc if any threat is detected. Arduino relay board containing\u00a0multiple relays can be used to switch on and off the peripherals(lights, alarm). Beside an sms alert\u00a0message an email can also be send to the house owner by utilizing the GPRS function of sim900 gsm\/gprs module.<\/p>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: right;\"><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/arduino_home_security_system.rar\">code\/files<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u200bIn this tutorial i am going to make an arduino home security system. One can install this diy arduino security\u00a0system project on his home main door. The diy arduino security system checks two things. First it checks if some one approached the door? Second it checks if door is opened by the person? When the&hellip;<\/p>\n","protected":false},"author":394,"featured_media":59895,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[32,1853,1720],"tags":[],"class_list":{"2":"type-post","10":"entry","11":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Arduino based home security system using GSM module<\/title>\n<meta name=\"description\" content=\"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch\" \/>\n<meta property=\"og:description\" content=\"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"748\" \/>\n\t<meta property=\"og:image:height\" content=\"492\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"EG Projects\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"EG Projects\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\"},\"author\":{\"name\":\"EG Projects\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2\"},\"headline\":\"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch\",\"datePublished\":\"2024-12-10T13:34:26+00:00\",\"dateModified\":\"2025-01-09T12:47:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\"},\"wordCount\":1818,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png\",\"articleSection\":[\"Arduino Projects\",\"Featured Contributions\",\"Microcontroller Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\",\"url\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\",\"name\":\"Arduino based home security system using GSM module\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png\",\"datePublished\":\"2024-12-10T13:34:26+00:00\",\"dateModified\":\"2025-01-09T12:47:35+00:00\",\"description\":\"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png\",\"width\":748,\"height\":492},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2\",\"name\":\"EG Projects\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g\",\"caption\":\"EG Projects\"},\"url\":\"https:\/\/www.engineersgarage.com\/author\/eg-projects\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Arduino based home security system using GSM module","description":"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/","og_locale":"en_US","og_type":"article","og_title":"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch","og_description":"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.","og_url":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":748,"height":492,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","type":"image\/png"}],"author":"EG Projects","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"EG Projects","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/"},"author":{"name":"EG Projects","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2"},"headline":"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch","datePublished":"2024-12-10T13:34:26+00:00","dateModified":"2025-01-09T12:47:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/"},"wordCount":1818,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","articleSection":["Arduino Projects","Featured Contributions","Microcontroller Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/","url":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/","name":"Arduino based home security system using GSM module","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","datePublished":"2024-12-10T13:34:26+00:00","dateModified":"2025-01-09T12:47:35+00:00","description":"\u200bIn this tutorial, we will make an arduino home security system that sends a sms\/text message to the owner mobile number using gsm module.","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","width":748,"height":492},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/arduino-home-security-with-gsm-pir-and-reed-switch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"Arduino home security system using Sim900 Gsm module, Pir motion detector and magnetic door contact switch"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2","name":"EG Projects","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g","caption":"EG Projects"},"url":"https:\/\/www.engineersgarage.com\/author\/eg-projects\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/arduino-gsm-pir-and-door-sensor-security-system_orig-2.png","author_info":{"display_name":"EG Projects","author_link":"https:\/\/www.engineersgarage.com\/author\/eg-projects\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/59896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/394"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=59896"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/59896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/59895"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=59896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=59896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=59896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}