Table of Contents
Air Quality monitoring system using ESP32. Diplsay used is OLED Display with Air Quality Sensor MQ135 and DHT-11.
Monitors :
- Carbon Dioxide CO2
- Ammonia NH4
- Temperature
- Humidity
This section should list components required to get started:
Software
Hardware
- ESP32 Dev Module
- MQ-135 Module
- SH1106 OLED i2c 128x64
- DHT-11 Module
Install libraries provided manually as MQunifiedsensor library is modified. Set pin A0 of MQ135 to ADC pin of ESP32. Setup SH1106 pin of SDA SCL with ESP32 SDA SCL. Select appropriate board and port.
Use the Library manager to install :
#include <MQUnifiedsensor.h>
#include "SH1106Wire.h"
#include <Wire.h>
#include "DHTesp.h"
#include <Ticker.h>
#define board ("ESP-32")
#define Voltage_Resolution 3.3
#define pin 15 //Analog input 0 of your arduino
#define type "MQ-135" //MQ135
#define ADC_Bit_Resolution 12 // For arduino UNO/MEGA/NANO
#define RatioMQ135CleanAir 3.6//RS / R0 = 3.6 ppm
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
Distributed under the MIT License. See LICENSE.txt
for more information.
Maaz Siddiqui - [email protected]
Project Link: ESP32_MQ-135_SH1106