Component guide · Intermediate · 3 min read
Winsen ZPHS01B and ZPHS01C, DFRobot PM2.5 HCHO Monitor

and Waveshare 6-in-1 Air Quality Modules
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Multi-in-one air quality modules measure several things from one UART connection. The Winsen ZPHS01B combines PM1, PM2.5, PM10, CO2 (NDIR), VOC level, temperature, humidity, formaldehyde, CO, ozone and NO2. The ZPHS01C is a smaller version. The DFRobot monitor gives PM2.5, formaldehyde, temperature and humidity, and the Waveshare 6-in-1 adds HCHO, TVOC, CO and IAQ.
Key specs at a glance
- Supply
- 5 V
- Interface
- UART 9600 8N1
- ZPHS01B
- PM1 / 2.5 / 10, CO2, VOC grade, T, RH, CH2O, CO, O3, NO2
- Request
- FF 01 86 00 00 00 00 00 79 (ZPHS01B)
- Reply
- 26-byte frame (ZPHS01B)
- Current
- About 200 to 300 mA with fan and NDIR
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Winsen ZPHS01B All In One Air Quality Monitoring Sensor Module – UART TTL₹14,409
Option 2Winsen ZPHS01C Multi-in-One Air Quality Sensor Module – TTL Serial Output₹4,789
Option 3DFRobot Air Quality Monitor PM2.5 HCHO Temp Humidity Sensor – UART Output₹5,179
Option 4Waveshare Environment 6-in-1 Gas Sensor Module – HCHO, TVOC, CO, IAQ, Temp, Humidity, UART₹5,089
What the Winsen ZPHS01B and multi-in-one air quality modules is
The Winsen ZPHS01B is an all-in-one air quality module that reports PM1.0, PM2.5, PM10, CO2, TVOC, formaldehyde, CO, O3, NO2, temperature and humidity over UART.
Each module has its own frame layout; the datasheet lists which byte holds each value. Read the raw frame first and match it to the table.
They are fast to build with, but replacing one failed sensor means replacing the whole module.
Winsen ZPHS01B and multi-in-one air quality modules pinout
The pins on the Winsen ZPHS01B and multi-in-one air quality modules and what each one does.
| Pin | Function |
|---|---|
| VCC | 5 V |
| GND | Ground |
| TX / RX | UART |
- VCC
- 5 V
- GND
- Ground
- TX / RX
- UART
Wiring the Winsen ZPHS01B and multi-in-one air quality modules
Connect the Winsen ZPHS01B and multi-in-one air quality modules like this.
| Winsen ZPHS01B and multi-in-one air quality modules pin | Arduino Uno | ESP32 |
|---|---|---|
| Module VCC | 5 V | 5 V (VIN) |
| Module GND | GND | GND |
| Module TXD | D10 (SoftwareSerial RX) | GPIO 16 (RX2) |
| Module RXD | D11 through a divider if the module is 3.3 V | GPIO 17 (TX2) |
- Module VCC
- Arduino Uno:
- 5 V
- ESP32:
- 5 V (VIN)
- Module GND
- Arduino Uno:
- GND
- ESP32:
- GND
- Module TXD
- Arduino Uno:
- D10 (SoftwareSerial RX)
- ESP32:
- GPIO 16 (RX2)
- Module RXD
- Arduino Uno:
- D11 through a divider if the module is 3.3 V
- ESP32:
- GPIO 17 (TX2)
Example code
A minimal sketch to check the part works.
const uint8_t ASK[9] = {0xFF, 0x01, 0x86, 0, 0, 0, 0, 0, 0x79};
void setup() {
Serial.begin(115200);
Serial2.begin(9600, SERIAL_8N1, 16, 17);
delay(180000); // NDIR and gas warm-up
}
void loop() {
Serial2.write(ASK, 9);
uint8_t r[26];
if (Serial2.readBytes(r, 26) == 26 && r[0] == 0xFF) {
for (int i = 0; i < 26; i++) { Serial.print(r[i], HEX); Serial.print(' '); }
Serial.println(); // map bytes to values with the datasheet table
}
delay(5000);
}Setup and tuning
feed 5 V at the stated current; the fan and sensors draw power.
read at 9600 baud with 3.3 V logic.
allow several minutes for gas sensors.
keep inlets clear and away from vents.
CO2 uses NDIR with auto baseline; other gases are indicative.
What you need
Shop this list8 of 9 found in our store · ₹32,198
Winsen ZPHS01B All In One Air Quality Monitoring Sensor Module – UART TTL: the part this guide coversWinsen ZPHS01B All In One Air Quality Monitoring Sensor Module – UART TTL₹14,409
Winsen ZPHS01C Multi-in-One Air Quality Sensor Module – TTL Serial Output: another version this guide coversWinsen ZPHS01C Multi-in-One Air Quality Sensor Module – TTL Serial Output₹4,789
DFRobot Air Quality Monitor PM2.5 HCHO Temp Humidity Sensor – UART Output: another version this guide coversDFRobot Air Quality Monitor PM2.5 HCHO Temp Humidity Sensor – UART Output₹5,179
Waveshare Environment 6-in-1 Gas Sensor Module – HCHO, TVOC, CO, IAQ, Temp, Humidity, UART: another version this guide coversWaveshare Environment 6-in-1 Gas Sensor Module – HCHO, TVOC, CO, IAQ, Temp, Humidity, UART₹5,089
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389- Uno R3 development board: the controller used in the wiring tableFind this part
USB to TTL serial converter: to talk to the module from a PCUSB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)₹85Closest match, check the specs
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Plantower PMS5003 PM2.5 sensor: to add dust measurementPlantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm₹2,119Closest match, check the specs
Alternatives and when to choose them
- Sensirion SEN5x and SEN66: I2C all-in-one.
- PM2.5 dust sensors: particles only.
- Air quality sensors: overview.
Common mistakes to avoid
- Weak 5 V supply.
- Blocking inlets.
- Reading before warm-up.
- Treating gas readings as certified.
Frequently asked questions
What does the ZPHS01B measure?
PM, CO2, TVOC, HCHO, CO, O3, NO2, temperature and humidity.
How do I read it with ESP32?
Use UART at 9600 baud and parse the data frame.
Are all readings accurate?
PM and CO2 are good; other gases are indicative.
How long does it take to warm up?
Several minutes for stable gas readings after power-up.
Can I use it in an air quality monitor?
Yes. It is designed for indoor air quality monitors and purifiers.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

