ESP32 MQ 135 SH1106
An ESP32 display project involving OLED display.
Parts and sourceBefore you start
Check the exact OLED display configuration against the upstream wiring or parts list.
Upstream README
Table of Contents
About The Project

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
Built With
This section should list components required to get started:
Software
Hardware
- ESP32 Dev Module
- MQ-135 Module
- SH1106 OLED i2c 128x64
- DHT-11 Module
Getting Started
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.
Installation
Use the Library manager to install :
#include <MQUnifiedsensor.h>
#include "SH1106Wire.h"
#include <Wire.h>
#include "DHTesp.h"
#include <Ticker.h>
Setup
#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
Contributing
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.
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Maaz Siddiqui - maaz.siddiqui3073@gmail.com
Project Link: ESP32_MQ-135_SH1106