Components / Sensors / MQ-2 gas and smoke sensor module

MQ-2 gas and smoke sensor module

Heated sensor that responds to LPG, smoke, methane and hydrogen. Gives a trend, not an exact ppm.

MeasuresCombustible gas and smoke (relative)
RangeAbout 300 to 10 000 ppm
InterfaceAnalog out plus digital threshold out
Supply voltage5 V, the heater draws about 150 mA
SensorsReviewedMPN MQ-2Used in 8 projects
MQ
In short

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.

How it works

A heated tin dioxide layer lowers its resistance when combustible gas reacts on its surface.

Key specifications

Sensor specValue
MeasuresCombustible gas and smoke (relative)
RangeAbout 300 to 10 000 ppm
InterfaceAnalog out plus digital threshold out
Supply voltage5 V, the heater draws about 150 mA
Watch out forNeeds 24 to 48 hours of first burn-in and a minute to warm up; not a certified safety alarm

Pinout

VCC5 V (heater draws about 150 mA)
GNDGround
DODigital, changes when gas passes the trimmer threshold
AOAnalog, rises with gas concentration

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

Alternatives

Buy at

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.