Receive SmS IF "GaS" Leakage
by Magesh Jayakumar in Circuits > Arduino
7525 Views, 27 Favorites, 0 Comments
Receive SmS IF "GaS" Leakage
![WP_20150510_002.jpg](/proxy/?url=https://content.instructables.com/FQK/WVQ4/I9GWDUFK/FQKWVQ4I9GWDUFK.jpg&filename=WP_20150510_002.jpg)
![SIM900A and Arduino. send SMS when there is GAS Leakage](/proxy/?url=https://content.instructables.com/F9V/T0BB/I9GWDVX4/F9VT0BBI9GWDVX4.jpg&filename=SIM900A and Arduino. send SMS when there is GAS Leakage)
Are you worried about your Home Safety??
This might be a perfect Project to get started with :)
This ible will explain how to receive sms when there is "GAS" Leakage at your home.
This project involves few components you don't need to be a nerd to make it.
List of components:
1) MQ-2 Gas Sensor
2)GSM Module
3) Arduino
4) Connecting Wires.
Circuit Connection
![GAS SMS.jpg](/proxy/?url=https://content.instructables.com/F1G/LDUK/I9GWDWLA/F1GLDUKI9GWDWLA.jpg&filename=GAS SMS.jpg)
You don't need to connect the way I did here, It just a explanation about which pin of arduino meets the GSM pin, all you have to do is place the GSM shield in the Arduino.
Connect the MQ-2 Gas sensor's Digital Outpin to the 7th pin of arduino or any other pin you'd like, but don't forget to change in the program (if you change the pin)
Arduino Program
int PIN = 7;
int sensor = 0;
void setup() {
pinMode (PIN,INPUT);
Serial.begin(9600);
delay(5000); }
void loop() {
sensor = digitalRead (PIN);
if (sensor == HIGH){
Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1");
delay(1000);
Serial.println("AT+CMGS=\"+919962*****\""); //CHANGE TO DESTINATION NUMBER
delay(1000);
Serial.print("Gas Leakage at HOME (attention required)");
Serial.write(26);
delay(300000); }
}
You can also download the program from this link: https://www.dropbox.com/s/q4vlcadygyn7giq/gsm_testing.ino?dl=0
Add-on to the Project
![How to make a fire detecting sensor using ir receiver and lm358](/proxy/?url=https://content.instructables.com/F8T/UQRL/I9GWE087/F8TUQRLI9GWE087.jpg&filename=How to make a fire detecting sensor using ir receiver and lm358)
You can also add a Flame sensor and other sensors to this project and modify the code for your Complete safe guard of your Home.
You can also check My other works in my blog: http://www.labviewarduino.in/