Jiss Anto
Published © GPL3+

Smoke Sensor

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

BeginnerShowcase (no instructions)2 hours10,191
Smoke Sensor

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
MQ-7 Carbon Monoxide Sensor
×1
Breadboard (generic)
Breadboard (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Resistor 221 ohm
Resistor 221 ohm
×1
RGB Backlight LCD - 16x2
Adafruit RGB Backlight LCD - 16x2
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Smoke Detection using MQ-7 Gas Sensor

Code

Smoke Detection using MQ-7 Gas Sensor

Arduino
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.
}

Credits

Jiss Anto

Jiss Anto

2 projects • 1 follower
Developer

Comments