The MQ-135 is a versatile gas sensor designed to detect a wide range of gases, including ammonia, nitrogen, oxygen, alcohols, aromatic compounds, sulfide, and smoke. It is widely used in air quality monitoring systems, industrial applications, and safety systems to ensure a healthy and safe environment. The sensor provides an analog output that can be easily interfaced with microcontrollers like the Arduino UNO for real-time monitoring and data logging.
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Load Resistance | 20kΩ (typical) |
Heating Resistance | 33Ω ± 5% |
Heating Power | ≤ 800mW |
Sensing Resistance | 10kΩ - 60kΩ (in clean air) |
Detection Range | 10 - 1000 ppm (NH3, NOx, etc.) |
Preheat Time | ≥ 24 hours |
Response Time | ≤ 10 seconds |
Recovery Time | ≤ 30 seconds |
Operating Temperature | -20°C to 50°C |
Humidity Range | 20% - 90% RH |
Pin No. | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V DC) |
2 | GND | Ground |
3 | AOUT | Analog output voltage proportional to gas concentration |
4 | DOUT | Digital output (threshold-based) |
// MQ-135 Gas Sensor - Arduino UNO Example Code
const int analogPin = A0; // Analog input pin connected to AOUT
const int digitalPin = 2; // Digital input pin connected to DOUT (optional)
int sensorValue = 0; // Variable to store the analog value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bps
pinMode(digitalPin, INPUT); // Set digital pin as input (optional)
}
void loop() {
sensorValue = analogRead(analogPin); // Read the analog value from the sensor
Serial.print("Analog Value: ");
Serial.println(sensorValue); // Print the analog value to the serial monitor
// Optional: Read the digital output
int digitalValue = digitalRead(digitalPin);
Serial.print("Digital Value: ");
Serial.println(digitalValue); // Print the digital value to the serial monitor
delay(1000); // Wait for 1 second before taking the next reading
}
No Output or Incorrect Readings:
Fluctuating Readings:
Slow Response Time:
How long does the sensor last?
Can the sensor detect multiple gases simultaneously?
Is the sensor waterproof?
By following this documentation, users can effectively integrate the MQ-135 gas sensor into their projects, ensuring accurate and reliable gas detection for various applications.