MQ-135 air quality sensor module
Heated sensor that responds to ammonia, benzene, smoke and CO2 together.
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.
A heated metal-oxide layer changes resistance when gases such as ammonia, benzene and alcohol react with it.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Mixed gases (relative, not true CO2) |
| Interface | Analog out plus digital out |
| Supply voltage | 5 V, heater about 150 mA |
| Watch out for | Needs warm-up and calibration; use an SCD40 for real CO2 |
Pinout
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
Builds that use it
Alternatives
- SCD40 CO2 sensorMeasures real CO2 by light absorption
- SGP40 VOC sensorModern VOC index sensor on I2C
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.
