Robot Pi Shop

MQ-135 Air Quality Sensor

$1.99

Shipping calculated at checkout.

Quantity

The MQ-135 Air Quality Sensor Module is a versatile gas detection sensor designed for monitoring air quality and detecting changes in the concentration of certain gases and pollutants.

The MQ-135 is sensitive to gases such as ammonia (NH3), nitrogen oxides (NOx), alcohol vapors, benzene, smoke, and other volatile compounds. It is commonly used in air quality monitoring, environmental sensing, and electronic projects.

Featuring analog and digital outputs, the module can be connected to Arduino, ESP32, Raspberry Pi (with an external ADC), and other compatible microcontrollers.

The onboard potentiometer allows users to adjust the digital detection threshold, making the module suitable for basic gas detection and air quality monitoring applications.

Key Features

  • Multi-Gas Detection: Sensitive to ammonia, nitrogen oxides, alcohol vapors, benzene, smoke, and other air contaminants.
  • Analog Output (AO): Provides a voltage signal that changes with gas concentration.
  • Digital Output (DO): Provides threshold-based gas detection.
  • Adjustable Sensitivity Threshold: Onboard potentiometer for digital output adjustment.
  • 5V Operating Voltage: Suitable for common microcontroller projects with appropriate interfacing.
  • Fast Response: Detects changes in surrounding gas concentrations.
  • Compact PCB Design: Easy integration into electronic projects.
  • Onboard Indicator LEDs: Power and digital detection status indication.
  • Reusable Sensor: Designed for continuous air quality sensing applications.

Technical Specifications

Specification Details
Product Model MQ-135
Sensor Type Semiconductor Gas Sensor
Sensing Material Tin Dioxide (SnO2)
Operating Voltage 5V DC
Analog Output 0–5V nominal
Digital Output TTL HIGH/LOW
Digital Output Voltage Approximately 0V or 5V
Gas Detection NH3, NOx, alcohol, benzene, smoke, and other gases
Typical NH3 Detection Range 10–300 ppm
Typical Benzene Detection Range 10–1000 ppm
Preheat Time At least 20 seconds for initial response; extended conditioning required for stable measurements
Sensitivity Adjustment Onboard Potentiometer (Digital Threshold)
Interface Analog and Digital
Module Dimensions Approximately 32 × 20mm
Sensor Technology Heated Metal Oxide Semiconductor

Pin Configuration

Pin Description
VCC 5V DC Power Supply
GND Ground
AO Analog Gas Sensor Output
DO Digital Threshold Output

Arduino UNO Connection Example

MQ-135 Pin Arduino UNO
VCC 5V
GND GND
AO A0
DO D2 (Optional)

The Arduino can read the analog output to monitor changes in gas concentration or use the digital output to detect when the adjustable threshold is reached.

ESP32 Connection Example

MQ-135 Pin ESP32
VCC 5V
GND GND
AO ADC GPIO34 through voltage divider
DO Digital GPIO through level shifting

Important: The MQ-135 module typically operates at 5V. ESP32 GPIO pins are not 5V tolerant. Use appropriate voltage scaling or level shifting when connecting the analog or digital outputs.

Raspberry Pi Compatibility

The MQ-135 can be used with Raspberry Pi boards, but the Raspberry Pi does not have built-in analog inputs.

To read the analog output, an external ADC module such as the ADS1115 or MCP3008 is required.

The digital output can be connected through a suitable 5V-to-3.3V level shifter.

Applications

  • Indoor air quality monitoring
  • Smart home environmental monitoring
  • Arduino and ESP32 gas detection projects
  • IoT air quality monitoring systems
  • Educational electronics projects
  • Ventilation monitoring systems
  • Environmental data logging
  • Gas detection demonstrations
  • Automated ventilation control prototypes
  • Robotics and sensor integration

Important Notes

  • The MQ-135 is a general-purpose gas sensor, not a selective gas analyzer.
  • It cannot reliably identify individual gases when multiple gases are present.
  • Accurate gas concentration measurements require calibration, reference conditions, and suitable conversion methods.
  • The analog output is not a direct ppm measurement.
  • The onboard potentiometer adjusts the digital detection threshold, not the sensor's underlying gas sensitivity.
  • The sensor contains an internal heating element and may become warm during operation.
  • Stable readings require warm-up and calibration. Initial sensor conditioning may take many hours, depending on the sensor's history and manufacturer specifications.
  • Temperature and humidity can affect sensor readings.
  • The module is not a certified safety detector for toxic gases, smoke alarms, or carbon monoxide protection.
  • Although MQ-135 sensors can respond to certain air contaminants, they are not suitable for accurate CO2 measurement. For reliable CO2 measurements, use a dedicated NDIR CO2 sensor.

Package Includes

  • 1 × MQ-135 Air Quality Gas Sensor Module