



MQ-2 Gas Sensor Module for Arduino, ESP32 & Raspberry Pi | Smoke & Flammable Gas Detector
Detect smoke and combustible gases with the MQ-2 Gas Sensor Module, compatible with Arduino, ESP32, Raspberry Pi, NodeMCU, STM32, and other microcontrollers. Designed to detect LPG, propane, methane, hydrogen, butane, smoke, and other flammable gases, this module features analog and digital outputs, adjustable sensitivity, and reliable gas detection performance. It is ideal for gas leakage alarms, fire safety systems, smart home automation, industrial monitoring, IoT projects, robotics, and STEM education.
Customize
Share :
MQ-2 Gas Sensor Module for Arduino, ESP32 & Raspberry Pi
The MQ-2 Gas Sensor Module is one of the most popular gas detection sensors used in electronics, safety systems, and IoT projects. It is designed to detect the presence of smoke and a wide range of flammable gases, making it an excellent choice for gas leakage detection and environmental monitoring.
Compatible with Arduino Uno, Nano, Mega, ESP32, Raspberry Pi, ESP8266 NodeMCU, STM32, and other development boards, the MQ-2 provides both analog and digital outputs. The analog output allows measurement of gas concentration trends, while the digital output can trigger alarms when gas levels exceed the threshold set using the onboard potentiometer.
Whether you're building a gas leak alarm, smart home safety system, industrial monitoring solution, or educational electronics project, the MQ-2 Gas Sensor Module offers dependable and easy-to-use gas detection.
Key Features
- Detects Smoke and Flammable Gases
- Sensitive to LPG, Propane, Methane, Hydrogen, Butane, and Smoke
- Analog and Digital Outputs
- Adjustable Gas Detection Threshold
- Onboard LM393 Comparator
- High Sensitivity Gas Sensor
- LED Power & Status Indicators
- Fast Response and Recovery
- Low Power Consumption
- Easy GPIO Interface
- Compact PCB Design
- Compatible with Arduino, ESP32, Raspberry Pi, NodeMCU, and STM32
- Ideal for Gas Leak Detection, IoT, Robotics, and STEM Projects
Technical Specifications
| Specification | Details |
|---|---|
| Product Type | MQ-2 Gas Sensor Module |
| Sensor Model | MQ-2 |
| Detectable Gases | LPG, Propane, Methane, Hydrogen, Butane, Smoke and Other Combustible Gases |
| Output | Analog (AO) & Digital (DO) |
| Comparator IC | LM393 |
| Operating Voltage | 5V DC |
| Heating Element | Built-in Heater |
| Sensitivity Adjustment | Onboard Potentiometer |
| Warm-up Time | Recommended before accurate readings |
| Interface | Analog & Digital GPIO |
| Compatibility | Arduino, ESP32, Raspberry Pi, NodeMCU, STM32 |
Note: The MQ-2 is primarily intended for detecting the presence and relative concentration of combustible gases and smoke. It is not a calibrated industrial gas analyzer.
Applications
- Gas Leakage Detection
- Smoke Detection
- LPG Leak Alarm
- Home Safety Systems
- Kitchen Gas Monitoring
- Smart Home Automation
- Industrial Safety
- Fire Detection Projects
- Environmental Monitoring
- Robotics
- IoT Projects
- Engineering Projects
- STEM Education
- Embedded Systems
- DIY Electronics
Package Includes
- 1 × MQ-2 Gas Sensor Module
Why Buy from Horizocart?
- Genuine quality-tested gas sensors
- Reliable smoke and gas detection
- Fast shipping across India
- Secure packaging
- Competitive pricing
- Trusted electronics and IoT supplier
- Excellent customer support
- Ideal for students, makers, engineers, and professionals
Frequently Asked Questions
Q. Is this compatible with Arduino Uno?
Yes. It is fully compatible with Arduino Uno, Nano, Mega, Leonardo, and other Arduino-compatible boards.
Q. Can I use it with ESP32?
Yes. It supports ESP32 using both analog and digital GPIO pins.
Q. Does it work with Raspberry Pi?
Yes. The digital output can connect directly to Raspberry Pi GPIO pins. The analog output requires an external ADC because Raspberry Pi does not have built-in analog inputs.
Q. Which gases can the MQ-2 detect?
The MQ-2 is sensitive to LPG, propane, methane, hydrogen, butane, smoke, and other combustible gases.
Q. Can I adjust the detection sensitivity?
Yes. The onboard potentiometer allows you to adjust the threshold for the digital output.
Q. Does the sensor require a warm-up period?
Yes. For stable and reliable readings, allow the sensor to warm up as recommended by the manufacturer before use.
Q. Can this sensor measure the exact gas concentration?
It can indicate the presence and relative concentration of gases. Accurate concentration measurement requires proper calibration and application-specific testing.


