Rucksikaa Raajkumar
Published © CC BY

Arduino Smoke Detector with MQ-2 Gas/ Smoke sensor

Build a simple DIY Arduino Smoke Detector with MQ-2 Gas/ Smoke sensor

IntermediateFull instructions provided1 hour6,531
Arduino Smoke Detector with MQ-2 Gas/ Smoke sensor

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
Grove - Gas Sensor(MQ2)
Seeed Studio Grove - Gas Sensor(MQ2)
×1
I2C 16x2 Arduino LCD Display Module
DFRobot I2C 16x2 Arduino LCD Display Module
×1
Buzzer, Harmony XVB
Buzzer, Harmony XVB
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Male/Male Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Code

Sample code

Arduino
You can use this code to obtain the analogue readings from the MQ type sensor module
int sensor = A0;
int reading;
void setup(){
  Serial.begin(9600);
}
void loop(){
  reading = analogRead(sensor);
  Serial.println("Reading: ");
  Serial.print(reading);
}

Credits

Rucksikaa Raajkumar

Rucksikaa Raajkumar

41 projects • 90 followers
Amateur Arduino Developer. Undergraduate. YouTuber (https://www.youtube.com/c/RucksikaaRaajkumar/videos) and Blogger (Arduino Projects by R)

Comments