The MQ 135 is a versatile gas sensor designed to detect a wide range of gases, including ammonia (NH₃), benzene (C₆H₆), alcohol, smoke, and other harmful gases. It operates on the principle of resistive change, where the sensor's resistance varies in the presence of target gases. This change is converted into an analog output signal, making it suitable for air quality monitoring and environmental sensing applications.
The MQ 135 sensor is designed for ease of use and integration into various systems. Below are its key technical details:
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Load Resistance (RL) | 10 kΩ (typical) |
Heating Voltage (VH) | 5V ± 0.2V |
Heating Current (IH) | ≤ 120 mA |
Detection Range | 10 ppm to 1000 ppm (varies by gas) |
Preheat Time | ≥ 24 hours for stable operation |
Output Signal | Analog voltage (0-5V) |
Operating Temperature | -20°C to 50°C |
Humidity Range | ≤ 95% RH |
Sensor Life | ≥ 2 years |
The MQ 135 sensor typically comes with four pins. Below is the pinout description:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply pin. Connect to 5V DC. |
2 | GND | Ground pin. Connect to the ground of the circuit. |
3 | AOUT | Analog output pin. Provides a voltage proportional to the gas concentration. |
4 | DOUT | Digital output pin. Outputs HIGH or LOW based on a preset threshold (optional). |
Below is an example of how to interface the MQ 135 with an Arduino UNO to read analog values:
// MQ 135 Gas Sensor Example Code for Arduino UNO
// This code reads the analog output of the MQ 135 sensor and prints the value
// to the Serial Monitor. Ensure the sensor is connected to the correct pins.
const int MQ135_PIN = A0; // Connect the AOUT pin of MQ 135 to Arduino A0
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(MQ135_PIN, INPUT); // Set the MQ 135 pin as input
}
void loop() {
int sensorValue = analogRead(MQ135_PIN); // Read the analog value from the sensor
float voltage = sensorValue * (5.0 / 1023.0); // Convert the value to voltage
// Print the sensor value and voltage to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
No Output or Incorrect Readings:
Fluctuating Readings:
Sensor Not Responding to Gases:
Digital Output Not Triggering:
Q1: Can the MQ 135 detect multiple gases simultaneously?
A1: Yes, the MQ 135 can detect a variety of gases, but it does not differentiate between them. It provides a combined analog output based on the total concentration of detectable gases.
Q2: How do I calibrate the MQ 135 sensor?
A2: Place the sensor in clean air and record the baseline analog output. Use this value as a reference for detecting gas concentrations.
Q3: What is the lifespan of the MQ 135 sensor?
A3: The sensor typically lasts for 2 years under normal operating conditions.
Q4: Can I use the MQ 135 with a 3.3V microcontroller?
A4: The MQ 135 is designed for 5V operation. If using a 3.3V microcontroller, a level shifter or voltage divider is required for compatibility.