Components / Sensors / MQ-135 air quality sensor module

MQ-135 air quality sensor module

Heated sensor that responds to ammonia, benzene, smoke and CO2 together.

MeasuresMixed gases (relative, not true CO2)
InterfaceAnalog out plus digital out
Supply voltage5 V, heater about 150 mA
Watch out forNeeds warm-up and calibration; use an SCD40 for real CO2
SensorsReviewedMPN MQ-135Used in 7 projects
MQ135
In short

What is the MQ-135 air quality sensor module and what is it used for?

Heated sensor that responds to ammonia, benzene, smoke and CO2 together. Makers use it for indoor air quality trends.

How it works

A heated metal-oxide layer changes resistance when gases such as ammonia, benzene and alcohol react with it.

Key specifications

Sensor specValue
MeasuresMixed gases (relative, not true CO2)
InterfaceAnalog out plus digital out
Supply voltage5 V, heater about 150 mA
Watch out forNeeds warm-up and calibration; use an SCD40 for real CO2

Pinout

VCC5 V (heater about 150 mA)
GNDGround
DODigital threshold output
AOAnalog, rises with polluting gases

How to use it

Warm it up for a few minutes, record AO in fresh outdoor air as the baseline, and show changes as a trend. Libraries that print CO2 in ppm only estimate it and can be far off.

Applications

Alternatives

Buy at

Common questions

What is the MQ-135 air quality sensor module used for?

In maker projects: indoor air quality trends.

How does the MQ-135 air quality sensor module work?

A heated metal-oxide layer changes resistance when gases such as ammonia, benzene and alcohol react with it.

What voltage does the MQ-135 air quality sensor module need?

5 V, heater about 150 mA.

How do I connect the MQ-135 air quality sensor module to an Arduino or ESP32?

Analog out plus digital out. Pins: VCC (5 V (heater about 150 mA)), GND (Ground), DO (Digital threshold output), AO (Analog, rises with polluting gases).

What can I use instead of the MQ-135 air quality sensor module?

SCD40 CO2 sensor and SGP40 VOC sensor.