Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use MQ135: Examples, Pinouts, and Specs

Image of MQ135
Cirkit Designer LogoDesign with MQ135 in Cirkit Designer

Introduction

The MQ135 is a versatile gas sensor designed for detecting a wide range of gases including ammonia (NH3), nitrogen oxides (NOx), alcohols, aromatic compounds, sulfide, smoke, and carbon dioxide (CO2). It is commonly used in air quality monitoring equipment for both indoor and outdoor environments, as well as in systems for detecting hazardous gases for safety and health applications.

Explore Projects Built with MQ135

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO Based Air Quality Monitoring and GSM Notification System
Image of Arduino wild: A project utilizing MQ135 in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Air Quality Monitor with LED Indicator and Piezo Speaker
Image of EXP-2. LED & Buzzer ON/OFF Using MQ-135 Sensor & Arduino: A project utilizing MQ135 in a practical application
This circuit uses an Arduino UNO to monitor air quality via an MQ 135 sensor and provides visual and auditory feedback using an LED and a piezo speaker. The Arduino is powered by a MAHIR 7.0 power supply, and the LED and speaker are controlled through digital pins D13 and D12, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Gas Detection and GSM Alert System
Image of Copy of Copy of gas sensor: A project utilizing MQ135 in a practical application
This circuit is designed to monitor air quality using an MQ135 sensor and provide visual and audible alerts. It features an Arduino UNO microcontroller interfaced with a GSM module for communication, an I2C LCD for display, and LEDs and a buzzer for local alerts. The Arduino runs embedded code to read the MQ135 sensor data, display air quality index (AQI) on the LCD, and trigger SMS and call alerts via the GSM module when gas is detected above a certain threshold.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Air Quality Monitor with Buzzer Alert
Image of smoke detector: A project utilizing MQ135 in a practical application
This circuit consists of an Arduino UNO microcontroller connected to an MQ135 air quality sensor and a buzzer module. The MQ135 sensor's analog output (A0) is connected to the Arduino's analog input (A0) to monitor air quality, while the buzzer's I/O pin is connected to the Arduino's digital pin (D9) to potentially alert based on sensor readings. The Arduino, sensor, and buzzer share a common power supply (5V) and ground (GND), indicating that the Arduino controls both the sensor data acquisition and the buzzer activation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MQ135

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino wild: A project utilizing MQ135 in a practical application
Arduino UNO Based Air Quality Monitoring and GSM Notification System
This circuit features an Arduino UNO microcontroller interfaced with an MQ135 air quality sensor, an MPU-6050 accelerometer/gyroscope, a SIM900A GSM communication module, and a buzzer. The Arduino reads analog data from the MQ135 sensor and communicates with the MPU-6050 via I2C, while also controlling the buzzer and handling serial communication with the SIM900A module. The purpose of this circuit is likely to monitor air quality and motion, provide alerts through the buzzer, and enable remote communication via GSM.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EXP-2. LED & Buzzer ON/OFF Using MQ-135 Sensor & Arduino: A project utilizing MQ135 in a practical application
Arduino UNO Air Quality Monitor with LED Indicator and Piezo Speaker
This circuit uses an Arduino UNO to monitor air quality via an MQ 135 sensor and provides visual and auditory feedback using an LED and a piezo speaker. The Arduino is powered by a MAHIR 7.0 power supply, and the LED and speaker are controlled through digital pins D13 and D12, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of Copy of gas sensor: A project utilizing MQ135 in a practical application
Arduino UNO Based Gas Detection and GSM Alert System
This circuit is designed to monitor air quality using an MQ135 sensor and provide visual and audible alerts. It features an Arduino UNO microcontroller interfaced with a GSM module for communication, an I2C LCD for display, and LEDs and a buzzer for local alerts. The Arduino runs embedded code to read the MQ135 sensor data, display air quality index (AQI) on the LCD, and trigger SMS and call alerts via the GSM module when gas is detected above a certain threshold.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of smoke detector: A project utilizing MQ135 in a practical application
Arduino UNO Based Air Quality Monitor with Buzzer Alert
This circuit consists of an Arduino UNO microcontroller connected to an MQ135 air quality sensor and a buzzer module. The MQ135 sensor's analog output (A0) is connected to the Arduino's analog input (A0) to monitor air quality, while the buzzer's I/O pin is connected to the Arduino's digital pin (D9) to potentially alert based on sensor readings. The Arduino, sensor, and buzzer share a common power supply (5V) and ground (GND), indicating that the Arduino controls both the sensor data acquisition and the buzzer activation.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Key Technical Details

  • Detection Gas: Ammonia, Nitrogen oxides, Alcohols, Aromatic compounds, Sulfide, Smoke, CO2
  • Concentration Range: 10 to 1000 ppm (parts per million) for various gases
  • Preheat Duration: 20 seconds
  • Supply Voltage: 5V ± 0.1
  • Heater Voltage: 5V (AC or DC)
  • Load Resistance: Adjustable
  • Heater Resistance: 33Ω ± 5%
  • Heater Power Consumption: Approx. 800mW
  • Operating Temperature: -20°C to 50°C

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 VCC Power supply (5V)
2 GND Ground
3 DO Digital output (TTL)
4 AO Analog output (Varies with gas concentration)

Usage Instructions

Integration with a Circuit

  1. Connect the VCC pin to a 5V power supply.
  2. Connect the GND pin to the ground of the power supply.
  3. The AO pin provides an analog voltage output that is proportional to the concentration of gases. Connect this to an analog input on your microcontroller.
  4. The DO pin provides a digital output which goes high or low based on a threshold value. This can be connected to a digital input on your microcontroller.

Important Considerations and Best Practices

  • Ensure that the sensor is preheated for at least 20 seconds before taking measurements.
  • Calibrate the sensor for accurate readings. This typically involves adjusting the load resistance to obtain a particular output voltage at a known gas concentration.
  • Avoid using the sensor in environments with high humidity as it may affect the readings.
  • The sensor's sensitivity changes with temperature, so it should be used within its specified operating temperature range.

Example Code for Arduino UNO

// MQ135 Gas Sensor Example Code
#include <MQ135.h>

MQ135 gasSensor = MQ135(A0); // Assign the analog pin A0 to MQ135

void setup() {
  Serial.begin(9600); // Start serial communication at 9600 baud rate
}

void loop() {
  float ppm = gasSensor.getPPM(); // Get the concentration of gas in ppm
  Serial.print("Gas concentration: ");
  Serial.print(ppm);
  Serial.println(" ppm");
  delay(1000); // Wait for a second before taking the next reading
}

Troubleshooting and FAQs

Common Issues

  • Inaccurate Readings: If the sensor is giving inaccurate readings, ensure that it has been properly calibrated and that it has been preheated for the recommended time.
  • No Output: Check the power supply connections and ensure that the sensor is receiving 5V.
  • Sensor Not Responding: Ensure that the sensor is operating within the recommended temperature range and that it has not been exposed to contaminants that could damage the sensor.

Solutions and Tips for Troubleshooting

  • Calibration: Perform calibration in clean air or a known concentration of gas to set a baseline for accurate readings.
  • Preheating: Always allow the sensor to preheat before taking measurements to ensure the readings stabilize.
  • Environmental Conditions: Use the sensor in an environment that is free from extreme humidity and temperature variations.

FAQs

Q: How long does the MQ135 sensor last? A: The lifespan of the MQ135 sensor can vary depending on usage and environmental conditions, but it typically lasts for about 2 years with proper calibration and maintenance.

Q: Can the MQ135 sensor detect carbon monoxide (CO)? A: The MQ135 is not specifically designed for CO detection. For accurate carbon monoxide measurements, a dedicated CO sensor is recommended.

Q: Is the MQ135 sensor suitable for outdoor use? A: Yes, the MQ135 can be used outdoors, but it should be protected from water and extreme environmental conditions to ensure accurate readings.