MQ-135 Air Quality Gas Sensor Detection Module for Arduino & DIY, Analog Output, Detects CO2/Ammonia/Smoke/VOCs, Adjustable Sensitivity with Onboard Potentiometer, 5V Compatible
More options
The MQ-135 Air Quality Sensor Module is a popular, cost-effective gas sensing solution designed for DIY air-quality projects and embedded monitoring systems. It is based on a heated metal-oxide semiconductor (MOS) sensing element whose resistance changes when exposed to certain gases. The MQ-135 is commonly used as a “general air quality” sensor because it reacts to a broad mix of gases found in indoor environments, including CO2-related air quality changes, ammonia (NH3), smoke, alcohol vapors, benzene, and other VOC-like compounds. Because it is cross-sensitive by nature, it is best suited for relative air-quality indication, trend tracking, and threshold alarms rather than certified, laboratory-accurate CO2 measurement.
- DIY indoor air quality indicator (relative VOC/smoke/air-quality changes)
- Ventilation and fan control prototypes using threshold logic
- Pollution/smoke presence alarms (with software filtering or DO threshold when available)
- Classroom/lab demonstrations of gas sensing and ADC signal processing
- Smart home experiments integrating air-quality trends into automation rules
Full description
Overview
The MQ-135 Air Quality Sensor Module is a popular, cost-effective gas sensing solution designed for DIY air-quality projects and embedded monitoring systems. It is based on a heated metal-oxide semiconductor (MOS) sensing element whose resistance changes when exposed to certain gases. The MQ-135 is commonly used as a “general air quality” sensor because it reacts to a broad mix of gases found in indoor environments, including CO2-related air quality changes, ammonia (NH3), smoke, alcohol vapors, benzene, and other VOC-like compounds. Because it is cross-sensitive by nature, it is best suited for relative air-quality indication, trend tracking, and threshold alarms rather than certified, laboratory-accurate CO2 measurement.
Technical Details
Inside the MQ-135 sensing head is a heater coil and a sensitive layer whose conductivity varies with gas adsorption. The heater must be powered to bring the sensing element to its operating temperature; this is why MQ-series sensors draw more current than typical low-power sensors. The module typically exposes an analog output (AO) that represents the sensor’s voltage across a load resistor (RL) in a divider with the sensor resistance (Rs). As gas concentration changes, Rs changes, shifting the AO voltage. Many module revisions also include a comparator circuit and a trimmer potentiometer to set a threshold for a digital output (DO). If your board includes DO, it can be used to trigger an alarm when the sensed level crosses the set point; if it does not, you can still implement thresholds in software using the analog reading.
For meaningful results, the MQ-135 requires warm-up and stabilization. Initial burn-in time can be significant (check datasheet), and day-to-day readings can drift with temperature, humidity, sensor aging, and supply variations. For best performance, power the sensor from a stable 5V source, allow adequate warm-up before sampling, and use averaging/filters in firmware. If you plan to estimate ppm values, you must calibrate the sensor in known conditions to determine R0 (sensor resistance in clean air) and then apply the appropriate sensitivity curves from the datasheet. Note that “CO2 sensor” in hobby contexts often refers to air-quality correlation rather than selective NDIR CO2 measurement; MQ-135 is not an NDIR sensor and will respond to multiple gases.
Specifications
- Sensor type: Heated MOS gas sensor (MQ-135 element on module)
- Target gases: Broad air-quality gases; sensitivity varies by gas and environment (check datasheet)
- Outputs: Analog output (AO) standard; digital output (DO) may be present depending on module revision
- Supply voltage: Typically 5V for heater operation (module revision dependent; check silkscreen/datasheet)
- Interface: AO to ADC input; optional DO to digital GPIO (if comparator circuit included)
- Calibration: Requires warm-up and baseline calibration (R0) for any ppm estimation; otherwise use relative readings
- Accuracy: Not a precision CO2 meter; readings are influenced by multiple gases, humidity, and temperature
- Power/Current: Heater current varies by module revision and operating conditions (check datasheet)
- Operating environment: Performance varies with temperature/humidity; allow stabilization time for consistent results
Applications
- DIY indoor air quality indicator (relative VOC/smoke/air-quality changes)
- Ventilation and fan control prototypes using threshold logic
- Pollution/smoke presence alarms (with software filtering or DO threshold when available)
- Classroom/lab demonstrations of gas sensing and ADC signal processing
- Smart home experiments integrating air-quality trends into automation rules
Integration Notes
Connect VCC and GND to a stable supply (commonly 5V). Route AO to an ADC-capable pin on your controller; for ESP32 and other 3.3V ADC systems, ensure the AO voltage range is compatible (use a divider if needed, depending on your module’s output swing). If your module includes DO, connect it to a digital input and adjust the onboard potentiometer to set the trigger threshold; verify the DO logic level with your controller’s voltage tolerance. Allow warm-up time before taking readings, then sample periodically and apply averaging (moving average or median filtering) to reduce noise. For ppm-style estimation, follow the datasheet procedure: determine R0 in clean air, compute Rs from the measured voltage and RL, then apply the appropriate curve parameters. Always treat results as indicative unless calibrated against known references.
Included Components
1x MQ-135 Air Quality Sensor Detection Module
No reviews yet — be the first.
Honest takes from buyers who built with this part.
Write a review
No questions yet.
Ask anything — the team and other customers will reply.
Ask a question
Starter Bundle Builder
Works With
Find more compatible parts
Related