The MQ-135 Sensor for Air Quality is a versatile and sensitive gas sensor designed to identify and quantify various harmful gases, including ammonia, nitrogen oxides, benzene, smoke, and others. It is widely used in air quality monitoring devices for both indoor and outdoor environments, providing valuable data for air quality assessment and control systems.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Supply voltage (5V) |
2 | GND | Ground |
3 | DO | Digital output (TTL) |
4 | AO | Analog output |
// MQ-135 Sensor Example Code
int analogPin = A0; // Analog input pin for MQ-135
int sensorValue = 0; // Variable to store the sensor value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
sensorValue = analogRead(analogPin); // Read the analog value from sensor
Serial.print("Air Quality: ");
Serial.println(sensorValue); // Print the sensor value to the serial monitor
delay(1000); // Wait for 1 second before reading again
}
Q: How often should the MQ-135 sensor be calibrated? A: It is recommended to calibrate the sensor upon first use and periodically when there are significant changes in the environment or every few months.
Q: Can the MQ-135 sensor detect carbon monoxide? A: The MQ-135 is not specifically designed for carbon monoxide detection. For accurate CO measurements, a dedicated CO sensor is recommended.
Q: Is the MQ-135 sensor suitable for outdoor use? A: While the MQ-135 can be used outdoors, it should be protected from water and extreme weather conditions to ensure accurate readings and longevity.