MQ-series gas (MQ-2/135…)

Also known as: MQ-2 · MQ-135 · MQ-7 · MQ gas sensor · More staples

In every starter kit, so everyone tries one — and then discovers why serious builds don't use them. Listed here so the comparison is honest.

As an Amazon Associate and an affiliate we may earn from qualifying purchases. Prices and availability are set by the retailer.

Avoid for new builds — see the gotchas for what to buy instead.

At a glance

⚑ flag an error
Measuresgas
AccuracyUncalibrated analog gas response — qualitative at best
Interfaceanalog (plus a 150–200 mA heater)
Supply5 V, heater 150–200 mA
Battery-viableNo (continuous draw)
ESPHomeGeneric ESPHome component (adc/gpio) — adc
Typical price$1-2 (street, varies)

Which one do I buy?

vs SGP41/ENS160: the modern MOX sensors are calibrated, compensated, I2C and don't need a heater budget. There is no use case left where the MQ wins except price.

Clone check

Medium clone risk. Buy from any reputable listing.

Good for

Gotchas to know

Wiring it up

Analog output: use an ADC1 pin (ADC2 fights with Wi-Fi), expect the ESP32's ADC to be nonlinear at the extremes, and calibrate in software. Any dev board with a spare ADC pin works.

Resources

More more staples sensors

← All sensors