The MQ-135 is a widely used air quality sensor designed to detect a range of gases and air pollutants. It is part of the MQ series of sensors from MQ Gas Sensors, and is commonly used in projects related to air quality monitoring, pollution detection and environmental sensing.
Here’s an example of how to use the MQ-135 with an Arduino:
int mq135Pin = A0; // Analog pin connected to the MQ-135 sensor int mq135Value = 0; // Variable to store sensor reading void setup() { Serial.begin(9600); // Start serial communication } void loop() { mq135Value = analogRead(mq135Pin); // Read the value from the sensor Serial.print("MQ-135 Sensor Value: "); Serial.println(mq135Value); // Print the sensor value delay(1000); // Wait for 1 second }
In this example:
Brand:- Generic
Origin:- China