Gas Detector Using Arduino

LPG Gas Sensor

An LPG gas sensor is a one kind of device which is used to sense the presence of a hazardous LPG gas leak in service station, cars, storage tanks and homes.This sensor is attached to an alarm circuit to give an alert to the operators through a buzzer sound in the area where the gas leak is occurring. The LPG gas sensor is also used to detect cigarette smoke,toxic gases, combustible, propane, iso-butane and LNG.

Related image
                                 MQ3 Gas Sensor

Gas Sensor Module

The below module comprises of a MQ3 sensor which is used to sense LPG gas. This module contains a MQ3 sensor which actually detects LPG gas, an LM393 comparator for comparing the output voltage of MQ3 sensor with a reference voltage. It gives a HIGH o/p when LPG gas is detected. A potentiometer is used to control sensitivity of gas. This sensor module is very easy to interface with microcontroller and other. We can also make it by using MQ3 and LM393 or LM358

 Components Required
  • Arduino UNO
  • Gas Sensor
  • Buzzer
  • Bread Board
  • Led
  • Hookup wires.
/*  Gas sensor Tutorial
const int sensorpin = A5; // sensor output pin to Arduino analog A0 pin   
int buzzer = 10;  
int sensorValue = 0;  
void setup()  
    pinMode(led, OUTPUT);  
    pinMode(buzzer, OUTPUT);  
    Serial.begin(9600); //Initialize serial port - 9600 bps  
void loop()  
    sensorValue = analogRead(sensorpin);  
    if (sensorValue < 100)  
        Serial.println("LPG Value");  
        digitalWrite(buzzer, HIGH);  
    digitalWrite(led, LOW);  
    digitalWrite(buzzer, LOW);