Product details
MQ-2 Gas Sensor Module
The MQ-2 Smoke LPG Butane Hydrogen Gas Sensor Detector Module is useful for gas leakage detection (home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke, or Propane. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible. The sensitivity of the sensor can be adjusted by the potentiometer
This MQ-2 Smoke and gas detector module works with 5V power, making it easy to connect to most projects. You can get two types of readings from it—an analog output, which gives you a range of values (0V to 5V) based on the gas level, or a digital output that’s either on (5V) or off (0V).
Check out the entire range of Gas Sensors.
Also explore the exclusive collection for Sensors.
Applications:
• Safety of home
• Control of air quality
• Measurement of gas level
• Gas leakage alarms
• IoT safety
MQ-2 Gas Sensor Module – Quick Start Guide
Wiring Guide
• Connect VCC to Arduino 5 V.
• Connect GND to Arduino GND.
• Connect A0 (analog output) to Arduino analog pin A0.
• Optional: Connect D0 (digital output) to Arduino digital pin (e.g., D2) for threshold detection.
• Allow the sensor to pre-heat for a few minutes before use.
Arduino Code Example – Analog Read
#define sensorPin A0 // analog input pin for MQ-2
int sensorValue = 0;
void setup() {
Serial.begin(9600);
Serial.println("MQ-2 Gas Sensor Test");
delay(2000); // sensor stabilisation
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.print("Gas Sensor Reading: ");
Serial.println(sensorValue);
if (sensorValue > 400) { // adjust threshold as needed
Serial.println(">> Gas/Smoke Detected!
The MQ-2 Smoke LPG Butane Hydrogen Gas Sensor Detector Module is useful for gas leakage detection (home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke, or Propane. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible. The sensitivity of the sensor can be adjusted by the potentiometer
This MQ-2 Smoke and gas detector module works with 5V power, making it easy to connect to most projects. You can get two types of readings from it—an analog output, which gives you a range of values (0V to 5V) based on the gas level, or a digital output that’s either on (5V) or off (0V).
Check out the entire range of Gas Sensors.
Also explore the exclusive collection for Sensors.
Applications:
• Safety of home
• Control of air quality
• Measurement of gas level
• Gas leakage alarms
• IoT safety
MQ-2 Gas Sensor Module – Quick Start Guide
Wiring Guide
• Connect VCC to Arduino 5 V.
• Connect GND to Arduino GND.
• Connect A0 (analog output) to Arduino analog pin A0.
• Optional: Connect D0 (digital output) to Arduino digital pin (e.g., D2) for threshold detection.
• Allow the sensor to pre-heat for a few minutes before use.
Arduino Code Example – Analog Read
#define sensorPin A0 // analog input pin for MQ-2
int sensorValue = 0;
void setup() {
Serial.begin(9600);
Serial.println("MQ-2 Gas Sensor Test");
delay(2000); // sensor stabilisation
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.print("Gas Sensor Reading: ");
Serial.println(sensorValue);
if (sensorValue > 400) { // adjust threshold as needed
Serial.println(">> Gas/Smoke Detected!



