MQ-135 gas sensor is a hazardous gas detection apparatus for the family, the environment, suitable for ammonia, aromatic compounds, sulfur, benzene vapor, smoke and other gases harmful gas detection, gas-sensitive element test concentration.
Air quality sensor is for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke and CO2. Ideal for use in office or factory, simple drive and monitoring circuit.
The sensitivity of the sensor can be adjusted by using the potentiometer.
FEATURES
* High sensitivity to Sulfide, benzene Department of steam, smoke and other harmful gases
* Long life and low cost
* Simple drive circuit
Connection
here are the connections for my sensor
Arduino | Gas Sensor |
---|---|
5V | VCC |
GND | GND |
NC | DO |
Analog A0 | AO |
Code
[codesyntax lang=”cpp”]
void setup() { Serial.begin(9600); } void loop() { float sensorVoltage; float sensorValue; sensorValue = analogRead(A0); sensorVoltage = sensorValue/1024*5.0; Serial.print("sensor voltage = "); Serial.print(sensorVoltage); Serial.println(" V"); delay(1000); }
[/codesyntax]
Results
Again look at the serial monitor, you need to let the sensor stabilise. Remember it consists of a heating element, so you effectively have to let the sensor ‘heat up'.
sensor voltage = 0.30 V
sensor voltage = 0.31 V
sensor voltage = 0.33 V
sensor voltage = 0.34 V
sensor voltage = 0.35 V
sensor voltage = 0.32 V
sensor voltage = 0.31 V
sensor voltage = 0.30 V
Links
MQ-135 Air Quality Sensor Hazardous Gas Detection Module for Arduino