Mq2 Flammable Gas And Smoke Module
Rs. 66.00 Rs. 76.00
- Brand: https://www.winsen-sensor.com/sensors/combustible-sensor/mq2.htm
- Product Code: SEN-GAS
- SKU -
- Availability: 2-3 Days
- Price in reward points: 1
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
-Supply Voltage:5V
-Sensitive to H2, LPG, CH4, CO, Alcohol, Smoke or Propane
-Analog and Digital Output
-Digital Out is High or Low based on a adjustable preset threshold.
OVERVIEW:
-High sensitivity to Propane, smoke, Hydrogen, LPG, CO, alcohol, Smoke.
-Fast response time <10s
-High sensitivity
-Stable and long life
PACKAGE INCLUDES:
1 PCS x Mq 2 Smoke Lpg Butane Hydrogen Gas Module
https://www.winsen-sensor.com/sensors/combustible-sensor/mq2.html
/*******
//SOURCE CODE TAKEN FROM BELOW LINK
//https://create.arduino.cc/projecthub/Aritro/smoke-detection-using-mq-2-gas-sensor-79c54a
All the resources for this project:
https://www.hackster.io/Aritro
*******/
int redLed = 12;
int greenLed = 11;
int buzzer = 10;
int smokeA0 = A5;
// Your threshold value
int sensorThres = 400;
void setup() {
pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(smokeA0, INPUT);
Serial.begin(9600);
}
void loop() {
int analogSensor = analogRead(smokeA0);
Serial.print("Pin A0: ");
Serial.println(analogSensor);
// Checks if it has reached the threshold value
if (analogSensor > sensorThres)
{
digitalWrite(redLed, HIGH);
digitalWrite(greenLed, LOW);
tone(buzzer, 1000, 200);
}
else
{
digitalWrite(redLed, LOW);
digitalWrite(greenLed, HIGH);
noTone(buzzer);
}
delay(100);
}
15 days