Component guide · Intermediate · 3 min read
SDS011 PM2.5 and PM10 Dust Sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Nova SDS011 is a laser dust sensor that reports PM2.5 and PM10 in µg/m³ once a second over a 9600 baud UART. It has its own fan and an air inlet nozzle you can connect a tube to, runs from 5 V at about 70 mA, and uses 3.3 V UART logic. It is a popular choice for outdoor air quality stations such as Sensor.Community.
Key specs at a glance
- Measures
- PM2.5 and PM10 (µg/m³)
- Range
- 0 to 999.9 µg/m³, particles 0.3 to 10 µm
- Supply
- 5 V, about 70 mA (under 4 mA asleep)
- Interface
- UART 9600 baud, 3.3 V logic; PWM outputs on the 7-pin connector
- Response
- 1 reading per second, under 10 s to settle
- Lifetime
- About 8000 hours of laser time
What the SDS011 sensor is
The SDS011 is bigger than the Plantower sensors but simple to use: the five pins you need are on a 0.1 inch header and many come with a USB serial adapter, so you can test it on a PC first.
The laser has a limited life, so for long-term stations wake it for 30 seconds every few minutes rather than running it all the time.
SDS011 sensor pinout
The pins on the SDS011 sensor and what each one does.
| Pin | Function |
|---|---|
| 5V | Supply, 5 V |
| GND | Ground |
| TXD | UART data out, 3.3 V |
| RXD | UART data in, 3.3 V (for sleep and settings commands) |
| 25um / 1um | PWM outputs for PM2.5 and PM10 (rarely used) |
- 5V
- Supply, 5 V
- GND
- Ground
- TXD
- UART data out, 3.3 V
- RXD
- UART data in, 3.3 V (for sleep and settings commands)
- 25um / 1um
- PWM outputs for PM2.5 and PM10 (rarely used)
Wiring the SDS011 sensor
Pin 1 is marked on the board next to the connector. The 3.3 V TXD is read fine by a 5 V Uno; use a divider on the Uno's TX into RXD.
| SDS011 sensor pin | Arduino Uno | ESP32 |
|---|---|---|
| 5V | 5V | 5V (VIN) |
| GND | GND | GND |
| TXD | D2 (SoftwareSerial RX) | GPIO 16 (RX2) |
| RXD | D3 through a 1k/2k divider | GPIO 17 (TX2) |
- 5V
- Arduino Uno:
- 5V
- ESP32:
- 5V (VIN)
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- TXD
- Arduino Uno:
- D2 (SoftwareSerial RX)
- ESP32:
- GPIO 16 (RX2)
- RXD
- Arduino Uno:
- D3 through a 1k/2k divider
- ESP32:
- GPIO 17 (TX2)
Example code
Libraries such as Nova Fitness Sds dust sensors add sleep and duty-cycle commands so the laser lasts longer.
void setup() {
Serial.begin(115200);
Serial2.begin(9600, SERIAL_8N1, 16, 17);
}
void loop() {
// 10-byte frame: AA C0 PM25L PM25H PM10L PM10H ID1 ID2 CHK AB
if (Serial2.available() >= 10 && Serial2.read() == 0xAA) {
uint8_t b[9];
Serial2.readBytes(b, 9);
if (b[0] == 0xC0 && b[8] == 0xAB) {
uint8_t sum = 0;
for (int i = 1; i <= 6; i++) sum += b[i];
if (sum == b[7]) {
float pm25 = (b[1] | b[2] << 8) / 10.0;
float pm10 = (b[3] | b[4] << 8) / 10.0;
Serial.printf("PM2.5: %.1f PM10: %.1f ug/m3\n", pm25, pm10);
}
}
}
}Setup and tuning
for a station, wake 30 s, read, then sleep a few minutes to save the laser and fan.
protect it from rain but let air reach the inlet.
readings run high in fog or above about 70 to 80 % humidity; add a humidity sensor to flag them.
a short tube to the nozzle lets you sample air from outside a box.
What you need
Shop this list5 of 7 found in our store · ₹3,016
Nova Sensor PM Sensor SDS011 High Precision Laser PM2.5/PM10 Air Quality Detection Sensor – UART/PWM Output: the part this guide coversNova Sensor PM Sensor SDS011 High Precision Laser PM2.5/PM10 Air Quality Detection Sensor – UART/PWM Output₹2,419
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
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs- BME280 sensor: to log humidity alongside the dust readingsFind this part
4-channel logic level converter (BSS138): to connect 5 V and 3.3 V signals safely4-Channel Logic Level Converter (BSS138)₹20
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- PMS5003 / PMS7003: smaller, adds PM1.0, but uses a fine-pitch connector.
- PM2.5 dust sensors: how the common dust sensors compare.
- MQ gas sensors: gases rather than particles.
Common mistakes to avoid
- Running the laser 24/7 and wearing it out within a year.
- Driving RXD from a 5 V pin without a divider.
- Placing it where rain or fog reaches the inlet.
- Reading the frame without checking the checksum and getting random spikes.
Frequently asked questions
SDS011 or PMS5003?
Both are good. The SDS011 is bigger with an easy header and tube nozzle; the PMS5003 is smaller and adds PM1.0.
Does the SDS011 work with ESP32?
Yes, power it from 5 V and connect TXD to an ESP32 RX pin directly.
How long does the laser last?
About 8000 hours, close to a year of continuous use, so use sleep mode.
Can I use it outdoors?
Yes, in a vented enclosure that keeps rain out.
Why are my readings very high on foggy days?
Water droplets are counted as particles. Flag readings when humidity is high.
Parts for this guide
Keep learning
Sources
- Nova Fitness SDS011 laser PM2.5 sensor specification V1.3
- SDS011 serial control protocol (Nova Fitness)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


