Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›SDS011 PM2.5 and PM10 Dust Sensor

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the SDS011 sensor isSDS011 sensor pinoutWiring the SDS011 sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

SDS011 sensor pinout

The pins on the SDS011 sensor and what each one does.

PinFunction
5VSupply, 5 V
GNDGround
TXDUART data out, 3.3 V
RXDUART data in, 3.3 V (for sleep and settings commands)
25um / 1umPWM outputs for PM2.5 and PM10 (rarely used)
PinFunction
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)
03

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 pinArduino UnoESP32
5V5V5V (VIN)
GNDGNDGND
TXDD2 (SoftwareSerial RX)GPIO 16 (RX2)
RXDD3 through a 1k/2k dividerGPIO 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)
04

Example code

Libraries such as Nova Fitness Sds dust sensors add sleep and duty-cycle commands so the laser lasts longer.

Read PM2.5 and PM10 from the data frame (ESP32) · Arduino C++Verify & upload in Electrolark
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);
      }
    }
  }
}
05

Setup and tuning

Duty cycle

for a station, wake 30 s, read, then sleep a few minutes to save the laser and fan.

Mount it outside under cover

protect it from rain but let air reach the inlet.

Humidity

readings run high in fog or above about 70 to 80 % humidity; add a humidity sensor to flag them.

Tube inlet

a short tube to the nozzle lets you sample air from outside a box.

06

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
07

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.
08

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.
09

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

  • Nova Sensor PM Sensor SDS011 High Precision Laser PM2.5/PM10 Air Quality Detection Sensor – UART/PWM Output
    ₹2,419View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 0.96" OLED Display 128x64
    ₹139View
  • Bosch BME280 Combined Temperature, Humidity & Pressure Sensor – I²C/SPI Digital Output
    ₹459View
  • 4-Channel Logic Level Converter (BSS138)
    ₹20View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Dust, Particulate Matter (PM) & Smoke Sensors

Keep learning

ComparisonIntermediatePM2.5 and PM10 Dust SensorsPM2.5 sensors count tiny airborne particles by shining light through a small air sample.3 min read · SensorsComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · Sensors

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.

On this page
Short answerWhat the SDS011 sensor isSDS011 sensor pinoutWiring the SDS011 sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)3 items · ₹2,643

Nova Sensor PM Sensor SDS011 High Precision Laser PM2.5/PM10 Air Quality Detection Sensor – UART/PWM Output · 4-Channel Logic Level Converter (BSS138) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

One frame per second. Values are µg/m³ with one decimal.

Serial monitor115200 baud
PM2.5: 41.7  PM10: 58.2 ug/m3

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question