Project showcase
Smoke Sensor

Smoke Sensor © GPL3+

Learn how to detect Smoke and inflammable gases using an MQ-7 sensor.

  • 4,534 views
  • 0 comments
  • 8 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

Solder 4 wire onto the sensor. Two wires on the both H pins, one wire on one of the A pins (any) and another on any of the B pins.

To connect the sensor, you have to connect one of the H pin to +5V Supply and the other one to Ground GND). Pin A is connected to the 5V pin. And the B pin is connect to the GND Pin and Pin A0 as shown on the pictures.

Once you have the circuit in place, upload the attached code onto the Arduino and open the serial monitor of the IDE.

Code

Smoke Detection using MQ-7 Gas SensorArduino
int mqx_analogPin = A0; // connected to the output pin of MQ-X

void setup(){
  Serial.begin(9600); // open serial at 9600 bps
}

void loop()
{
  // give ample warmup time for readings to stabilize

  int mqx_value = analogRead(mqx_analogPin);
  Serial.println(mqx_value);

  delay(100); //Just here to slow down the output.
}

Schematics

Smoke Detection using MQ-7 Gas Sensor
Fw9n2zthtx5k9no small ef1uygcqut

Comments

Similar projects you might like

Smoke Detection using MQ-2 Gas Sensor

by Aritro Mukherjee

  • 213,129 views
  • 36 comments
  • 133 respects

Arduino Temperature - Humidity - Rain Sensor

Project showcase by Rick_Findus

  • 7,460 views
  • 6 comments
  • 13 respects

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by Anbumachi

  • 1,160 views
  • 2 comments
  • 5 respects

Portable Arduino Temp/Humidity Sensor with LCD

Project tutorial by ThothLoki

  • 153,300 views
  • 115 comments
  • 185 respects

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 23,927 views
  • 8 comments
  • 54 respects

Soil Moisture Sensor With LCD Display

Project tutorial by Patel Darshil

  • 19,349 views
  • 4 comments
  • 37 respects
Add projectSign up / Login