MQ-7 : CARBON MONOXIDE GAS DETECTOR SENSOR

MQ-7 : CARBON MONOXIDE GAS DETECTOR SENSOR

                                                             This is a simple-to-use liquefied petroleum gas (LPG) sensor, suitable for sensing LPG (composed of mostly propane and butane) concentrations in the air. It can be used in Automatic LPG gas leakage detection systems.It can detect carbon monoxide and methane We can interface the MQ 7 sensor with Arduino to automatically identify the presence of methane gas,carbon monoxide etc,.

Application:

  • The MQ-7 sensor can detect or measure high sensitive Carbon Monoxide.
  • To sense leakage of poisonous gas.
  • To avoid life loss.

Sample Project With Arduino:

                                       In this we going to turn ON the LED whenever the MQ- sensor senses  the presence of carbon monoxide or methane.

 Materials required:

  • MQ-4 gas sensor
  • Arduino UNO
  • Red LED
  • Jumper wires

Circuit:



Code:

int sensorpin = 8;

int LED = 13;

void setup() {

  Serial.begin(9600);

  pinMode(sensorpin, INPUT);

  pinMode(LED, OUTPUT);

  digitalWrite(LED, LOW);

  Serial.println("MQ");

}

void loop() {

  if(digitalRead(sensorpin) == LOW)

  {

    digitalWrite(LED, HIGH);

    Serial.println("Detected");

    delay(500);

  }

  else  {

    digitalWrite(LED, LOW);

    Serial.println("Not Detected");

    delay(500);

  }}


Comments

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS