Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Home Security System Using Arduino, Pir Sensor And GSM Sim900A
Just Do Electronics
April 17, 2020
Home Security System Using Arduino, Pir Sensor And GSM Sim900A
Circuit Diagram :-
Code :-
//Prateek //wwww.prateeks.in //https://www.youtube.com/c/JustDoElectronics/videos #include
SoftwareSerial SIM900(2, 3); String textForSMS; int pirsensor = 9; int buzzer = 11; int red = 7; int green = 8; void setup() { randomSeed(analogRead(0)); Serial.begin(9600); SIM900.begin(9600); Serial.println(" logging time completed!"); pinMode(pirsensor, INPUT); pinMode(buzzer, OUTPUT); pinMode(red, OUTPUT); pinMode(green, OUTPUT); digitalWrite(buzzer, LOW); digitalWrite(red, LOW); digitalWrite(green, LOW); delay(100); } void loop() { if ( digitalRead(pirsensor) == HIGH) // { textForSMS = "\Any Person in your Room Plz Check It "; digitalWrite(buzzer, HIGH); digitalWrite(red, HIGH); digitalWrite(green, LOW); sendSMS(textForSMS); Serial.println(textForSMS); Serial.println("message sent."); delay(8000); } if ( digitalRead(pirsensor) == LOW) // { digitalWrite(buzzer, LOW); digitalWrite(red, LOW); digitalWrite(green, HIGH); delay(1000); } } void sendSMS(String message) { SIM900.print("AT+CMGF=1\r"); delay(1000); SIM900.println("AT + CMGS = \"+918830584864\""); delay(1000); SIM900.println(message); SIM900.println((char)26); delay(1000); SIM900.println(); // give module time to send SMS }
Video :-
0 Comments
Newer
Older
Build Your Own Gps Tracking System using Arduino
How To Make RFID & Keypad Based Door Lock
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Ultrasonic Sensor as a Counter with Arduino
ESP32 Interfacing With LDR Sensor
IoT Based Patient Health Monitoring System Using Blynk App
OTP Based Door Lock Using Arduino And SIM800L
Nodemcu Interfacing With Em-18
ESP32 Led Blink With Push Button
Measure CO2 Level in Air Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments