MQ-2 Smoke Hydrogen Butane LPG Methane Gas Sensor Detector Module
MQ-2 Smoke Hydrogen Butane LPG Methane Gas Sensor Detector Module
Couldn't load pickup availability
π Overview
The MQ-2 smoke and gas sensor detector module detects smoke and a wide range of combustible gases including hydrogen (Hβ), methane (CHβ), butane, alcohol, and LPG (Liquified Petroleum Gas). Its broad detection range makes it one of the most versatile gas sensors in the MQ family, suitable for both home and industrial use.
The module features dual signal outputs: an analog output (0V to ~5V) that increases with gas or smoke concentration, and a digital TTL output that signals when concentration exceeds an adjustable threshold. The threshold is easily set using the onboard potentiometer. With fast response and recovery characteristics, long service life, and reliable stability, the MQ-2 is a popular choice for smoke alarms, gas leak detection, and Arduino-based safety projects.
β Key Features
- Smoke & Multi-Gas Detection β Detects smoke, hydrogen, methane, butane, alcohol, and LPG
- Wide Detection Range β 300β10,000 ppm for flammable gases
- Dual Signal Output β Analog (AO) and digital TTL (DO) outputs for flexible integration
- Adjustable Threshold β Onboard potentiometer to set the digital output trigger level
- Indicator LEDs β Power LED and digital output (DO) status LED for visual feedback
- Fast Response & Recovery β Quick detection and return to baseline for reliable monitoring
- Simple 4-Pin Interface β VCC, GND, AO, DO β no library required
- 5V Compatible β Works directly with Arduino, ESP8266, and other 5V development boards
π Specifications
| Parameter | Value |
|---|---|
| Detector Type | ZYMQ-2 Gas Sensor |
| Operating Voltage | 5V DC |
| Maximum Power Consumption | 800 mW (160 mA at 5V) |
| Detectable Concentration | 300β10,000 ppm (flammable gas) |
| Detectable Gases | Smoke, hydrogen (Hβ), methane (CHβ), butane, alcohol, LPG |
| Analog Output (AO) | 0V to ~5V (proportional to gas/smoke concentration) |
| Digital Output (DO) | TTL level β LOW normally, HIGH when gas/smoke detected |
| Threshold Adjustment | Onboard potentiometer |
| Indicator LEDs | Power LED, DO (Digital Output) LED |
| Dimensions | Approx. 32 Γ 20 Γ 27 mm (1.25 x 0.8 x 1.1 inches) L Γ W Γ H |
| Weight | ~7 grams |
π¦ What's in the Box
- 1x MQ-2 Smoke & Gas Sensor Detector Module
π Compatible With
- Arduino (Uno, Mega, Nano, Pro Mini, and compatibles)
- ESP8266 and ESP32 development boards
- Raspberry Pi (with ADC module for analog reading)
- STM32, Teensy, and other 5V-compatible microcontrollers
- Any microcontroller with analog input and 5V power supply
π Getting Started
- Connect VCC to 5V, GND to GND, AO to an analog input pin (e.g., A0), and DO to a digital input pin (e.g., D2)
- Upload a basic analogRead() sketch to your Arduino β no special library is required
- Open the Serial Monitor at 9600 baud and allow the sensor 2β5 minutes to warm up
- Observe the baseline reading in clean air, then introduce smoke or gas near the sensor to see the value increase
- Adjust the onboard potentiometer to set the digital output threshold for your application
π‘ Tip: A safe way to test smoke detection is to light a match, blow it out, and hold the smoldering match near the sensor. See our complete User Guide linked below for detailed wiring diagrams, sample Arduino code, and troubleshooting tips.
π Pinout
| Pin | Function |
|---|---|
| VCC | Power supply input β connect to +5V |
| GND | Ground |
| DO | Digital output β TTL HIGH when gas/smoke exceeds threshold |
| AO | Analog output β voltage proportional to gas/smoke concentration (0β5V) |
π― Typical Applications
- Smoke detection and fire alarm systems
- Home gas leak detection (kitchen, furnace room, garage)
- Industrial gas monitoring systems
- Arduino and microcontroller safety projects
- Portable gas and smoke sniffers
- Smart home automation β trigger ventilation fans, alarms, or shut-off valves when gas or smoke is detected
- Air quality monitoring stations
- Educational and STEM projects
β οΈ Important Notes
- The sensor element gets hot during operation β do not touch the metal mesh cylinder while powered
- This module is for gas and smoke detection and indication only β it is not a certified safety device and should not be used as the sole protection against gas leaks or fire
- Allow a 24β48 hour initial burn-in for best accuracy on first use; subsequent warm-ups take only 2β5 minutes
- The MQ-2 is a broad-spectrum sensor β it responds to multiple gases and smoke simultaneously and cannot differentiate between gas types on its own
- Raw analog readings are not direct PPM values β calibration against known concentrations is required for PPM conversion
- The sensor draws up to 160 mA β use an external 5V supply if powering multiple sensors or experiencing unstable readings
- Keep the sensor away from direct airflow (fans, HVAC vents) that could dilute gas or smoke concentrations
π Documentation & Resources
- User Guide β Wiring, Arduino Code, Calibration & Troubleshooting
- All Sensor, Detector & Input Module Guides
Share
