Video tutorial
Air Quality Monitoring Basics
The MQ-135 Gas Sensor is a versatile and essential tool for environmental and health monitoring. Unlike specific gas sensors, the MQ-135 is sensitive to a wide range of harmful components including NH3 (Ammonia), NOx (Nitrogen oxides), Alcohol, Benzene, Smoke, and CO2 (Carbon dioxide). This makes it the ideal sensor for creating an "Air Quality Station" that can detect general pollution or hazardous indoor air conditions.
Sensor Hardware and Expansion
- Arduino UNO: The primary data hub that handles the analog-to-digital conversion of the sensor's readings.
- MQ-135 Sensor Module: Contains a Tin Dioxide (SnO2) sensitive layer. In clean air, the sensor's conductivity is low. In the presence of polluting gases, the conductivity increases, which is then output as a variable voltage.
- Prototype Expansion Board: Provides a secure and organized platform for the MQ-135, allowing you to easily add secondary components like Buzzers (for alarms) or OLED screens (for live data readouts).
- USB Interface: Power is delivered to the Arduino via a Type A/B cable, which also allows for real-time "Serial Plotting" of the air quality data on a connected PC.
Calibration and Data Processing
Obtaining accurate readings from an MQ-135 requires a structured process:
- The Preheat Phase: The sensor has an internal heater. It must be allowed to run for at least 24-48 hours initially (and a few minutes during each subsequent use) to stabilize the chemical reading.
- Analog Mapping: The Arduino reads the voltage (0-5V) and maps it to a digital value (0-1023).
- PPM Calculation (Advanced): By using a specific mathematical formula provided in the sensor's datasheet, the Arduino can convert these raw values into PPM (Parts Per Million).
- Baseline Setup: The user must define a "Clean Air" baseline in their code to serve as the reference for detecting pollution spikes.
Strategic Integration for Health and Safety
The MQ-135 integration is more than just a hobby project; it is a critical building block for home automation. By setting an alarm threshold, this system can trigger an exhaust fan or send a notification to your phone if indoor air quality becomes hazardous. It is an excellent example of Embedded Systems serving public health through accessible technology.