MQ-2 gas and smoke sensor module
Heated sensor that responds to LPG, smoke, methane and hydrogen. Gives a trend, not an exact ppm.
What is the MQ-2 gas and smoke sensor module and what is it used for?
Heated sensor that responds to LPG, smoke, methane and hydrogen. Gives a trend, not an exact ppm. Makers use it for gas leak and smoke alarms.
A heated tin dioxide layer lowers its resistance when combustible gas reacts on its surface.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Combustible gas and smoke (relative) |
| Range | About 300 to 10 000 ppm |
| Interface | Analog out plus digital threshold out |
| Supply voltage | 5 V, the heater draws about 150 mA |
| Watch out for | Needs 24 to 48 hours of first burn-in and a minute to warm up; not a certified safety alarm |
Pinout
How to use it
Power it from 5 V with a supply that can give the heater current. Let it run for 24 to 48 hours the first time and a few minutes before each session, then log AO in clean air as your baseline and watch for rises. On a 3.3 V board, divide AO down before the ADC.
Applications
Builds that use it
Alternatives
- MQ-5 LPG sensor moduleTuned more for LPG and natural gas
- MQ-135 air quality sensor moduleMixed air-quality gases
Common questions
What is the MQ-2 gas and smoke sensor module used for?
In maker projects: gas leak and smoke alarms.
How does the MQ-2 gas and smoke sensor module work?
A heated tin dioxide layer lowers its resistance when combustible gas reacts on its surface.
What voltage does the MQ-2 gas and smoke sensor module need?
5 V, the heater draws about 150 mA.
How do I connect the MQ-2 gas and smoke sensor module to an Arduino or ESP32?
Analog out plus digital threshold out. Pins: VCC (5 V (heater draws about 150 mA)), GND (Ground), DO (Digital, changes when gas passes the trimmer threshold), AO (Analog, rises with gas concentration).
What can I use instead of the MQ-2 gas and smoke sensor module?
MQ-5 LPG sensor module and MQ-135 air quality sensor module.
