Last updated
The MQ-135 gas sensor is a popular sensor used to detect a wide range of gases including ammonia, sulfide, and benzene steam, as well as smoke and other harmful gases. It is commonly used in air quality monitoring systems and various industrial applications due to its high sensitivity and fast response time.
High Sensitivity: Detects a wide range of gases with high accuracy.
Fast Response Time: Quick response to changes in gas concentrations.
Wide Detection Range: Suitable for detecting ammonia, sulfide, benzene steam, smoke, and other harmful gases.
Stable and Long Life: Provides stable readings over a long period.
Simple Interface: Easy to connect to microcontrollers like Arduino and Raspberry Pi.
Operating Voltage: 5V
Detecting Range: 10-1000 ppm (Ammonia, Benzene, Alcohol)
Preheat Time: Over 24 hours
Sensitivity: Adjustable via onboard potentiometer
Output: Analog (0-5V) and Digital (TTL logic)
VCC: Power supply pin (5V)
GND: Ground pin
AO: Analog output pin
DO: Digital output pin (High/Low signal based on threshold)
Size: 40.0mm * 21.0mm
Weight: 5g
Power the Sensor: Connect the VCC pin to the 5V power supply and the GND pin to the ground.
Read Analog Values: Connect the AO pin to an analog input of your microcontroller to read the gas concentration values.
Set Threshold: Adjust the onboard potentiometer to set the threshold for the digital output.
Read Digital Values: Connect the DO pin to a digital input of your microcontroller to receive high/low signals based on the gas concentration exceeding the set threshold.
Code Example: Write a simple program to read the analog and digital values from the sensor and take appropriate actions based on the readings. For example, you can trigger an alarm if the gas concentration exceeds a certain limit.