This is improved fork of official airgradienthq/arduino repo this version enables Plantower PMS5003 sensor capabilities
to report PM1, PM2.5 and PM10 measurments which are not used by AirGradient project by default.
This fork also fixes:
- PMS5003 bug. AirGradient sensor PM2.5 reports -1 value
- CO2 (RCO2) sensor bug. AirGradient sensor for CO2 reports -1 value
- CO2 (RCO2) sensor bug. AirGradient sensor for CO2 reports 65278 value
- add temperature adjustment value
Thats how this bugs looks on the graphs:

If you have same kind of reporting from your AirGradient - go with this version.
Installation is very simple.
- Install Arduino IDE from brew(mac) or from official site:
brew install --cask arduino
- Open Arduino IDE
- Open the
Preferenceswindow - Add
http://arduino.esp8266.com/stable/package_esp8266com_index.jsontoAdditional Boards Manager URL. - Then go to
Tools>Board menuand openBoards Manager.... - Search for the
esp8266board and install it's latest version 3.1.0 (04.03.2023). - Select
LOLIN(WEMOS) D1 R2 Minifrom theTools>Board>ESP8266 menu. - Go to
Tools>Manage Libraries...and install following libraries:AirGradientthe latest version 2.4.0 (04.03.2023)ESP8266 and ESP32 OLED driver for SSD1306by ThingPulse version 4.3.0 (04.03.2023)WifiManagerby tablatronix (optional for 04.03.23)
- Choose
C02_PM1_PM2_PM10_SHT_OLED_WIFI.inofrom theFile>Openmenu. - Setup WiFi SSID and password under
// WiFi and IP connection info.file section. - Setup your AirGradient sensor ID under
// AirGradient sensor ID.file section. - You can optionally adjust temrerature value under
// Dirty Temp adjust (-4 degrees)in lines 212 and 322.
Then flash updated C02_PM1_PM2_PM10_SHT_OLED_WIFI.ino as new AirGradient board firmware.
Build your own low cost air quality sensor with optional display measuring PM2.5, CO2, Temperature and Humidity.
This library makes it easy to read the sensor data from the Plantower PMS5003 PM2.5 sensor, the Senseair S8 and the SHT30/31 Temperature and Humidity sensor. Visit our DIY section for detailed build instructions and PCB layout.

