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. ›PMS5003 and PMS7003 PM2.5 Sensor

Component guide · Intermediate · 4 min read

PMS5003 and PMS7003 PM2.5 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 PMS5003 / PMS7003 sensor isPMS5003 / PMS7003 sensor pinoutWiring the PMS5003 / PMS7003 sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The Plantower PMS5003 and the slimmer PMS7003 are laser particle sensors. A small fan pulls air past a laser, and the sensor counts particles and reports PM1.0, PM2.5 and PM10 in µg/m³ over a 9600 baud UART. The fan needs 5 V, but the data pins are 3.3 V logic, so they connect straight to an ESP32. Readings arrive about once a second.

Key specs at a glance

Measures
PM1.0, PM2.5, PM10 (µg/m³) and particle counts
Range
0 to 500 µg/m³ (effective), particles 0.3 to 10 µm
Supply
5 V, about 100 mA with the fan running
Interface
UART 9600 baud, 3.3 V logic
Connector
8-pin 1.25 mm (PMS5003) or 10-pin 1.27 mm (PMS7003)
Lifetime
About 3 years (sleep mode extends it)

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1Plantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm₹2,119
  • Option 2Plantower PMS7003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5V, Range: 0.3~10 µm₹1,849
  • Option 3PMS7003 PM2.5 Air Particle Dust Sensor Module₹1,690
01

What the PMS5003 / PMS7003 sensor is

These sensors are the ones inside many home air purifiers and community air monitors. They give consistent readings, much better than the cheap optical dust sensors with an IR LED.

The PMS7003 is thinner with the air inlet and outlet on the same side; the PMS5003 is a cube. Both send the same 32-byte data frame. Use the adapter board or cable to reach the tiny connector.

02

PMS5003 / PMS7003 sensor pinout

The pins on the PMS5003 / PMS7003 sensor and what each one does.

PinFunction
VCC5 V for the fan
GNDGround
TXUART data out, 3.3 V
RXUART data in, 3.3 V (for sleep and passive mode)
SETHIGH or open = run, LOW = sleep
RESETLOW resets (leave open)
PinFunction
VCC
5 V for the fan
GND
Ground
TX
UART data out, 3.3 V
RX
UART data in, 3.3 V (for sleep and passive mode)
SET
HIGH or open = run, LOW = sleep
RESET
LOW resets (leave open)
03

Wiring the PMS5003 / PMS7003 sensor

The sensor's TX at 3.3 V is read fine by a 5 V Uno. Its RX must not see 5 V: use a divider or level shifter from the Uno's TX, or leave RX unconnected if you only read data.

PMS5003 / PMS7003 sensor pinArduino UnoESP32
VCC5V5V (VIN)
GNDGNDGND
TXD2 (SoftwareSerial RX)GPIO 16 (RX2)
RXD3 through a 1k/2k dividerGPIO 17 (TX2)
SETOpen (or D4 to sleep)Open (or GPIO 4)
VCC
Arduino Uno:
5V
ESP32:
5V (VIN)
GND
Arduino Uno:
GND
ESP32:
GND
TX
Arduino Uno:
D2 (SoftwareSerial RX)
ESP32:
GPIO 16 (RX2)
RX
Arduino Uno:
D3 through a 1k/2k divider
ESP32:
GPIO 17 (TX2)
SET
Arduino Uno:
Open (or D4 to sleep)
ESP32:
Open (or GPIO 4)
04

Example code

Install the PMS library by Mariusz Kacki. Use the atmospheric (AE) values for outdoor or room air. Show them on a display or send them to a dashboard.

Read PM2.5 on an ESP32 with the PMS library · Arduino C++Verify & upload in Electrolark
#include "PMS.h"

PMS pms(Serial2);
PMS::DATA data;

void setup() {
  Serial.begin(115200);
  Serial2.begin(9600, SERIAL_8N1, 16, 17);   // RX, TX
}

void loop() {
  if (pms.read(data)) {
    Serial.print("PM1.0: "); Serial.print(data.PM_AE_UG_1_0);
    Serial.print("  PM2.5: "); Serial.print(data.PM_AE_UG_2_5);
    Serial.print("  PM10: ");  Serial.println(data.PM_AE_UG_10_0);
  }
}
05

Setup and tuning

Warm-up

wait about 30 seconds after waking for the fan to settle before trusting readings.

Airflow

keep inlet and outlet clear and do not seal it in a box without vents.

Humidity

above about 80 % humidity, water droplets read as particles; values run high in fog or rain.

Save the fan

sleep it between readings (SET LOW) to extend its life.

06

What you need

Shop this list8 of 9 found in our store · ₹6,514

  • Plantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm: the part this guide coversPlantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm₹2,119
  • Plantower PMS7003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5V, Range: 0.3~10 µm: another version this guide coversPlantower PMS7003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5V, Range: 0.3~10 µm₹1,849
  • PMS7003 PM2.5 Air Particle Dust Sensor Module: another version this guide coversPMS7003 PM2.5 Air Particle Dust Sensor Module₹1,690
  • 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
  • PMS5003 adapter board and cable: to connect to the sensor's small socket8P Switch Board and Cable for PMS5003 Laser Dust Sensor – Interface PCB₹259Closest match, check the specs
  • 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

  • ✓SDS011 dust sensor: a larger PM2.5/PM10 sensor with a USB adapter option.
  • ✓PM2.5 dust sensors: how laser and IR dust sensors compare.
  • ✓BME280: add humidity so you can flag readings taken in very damp air.
08

Common mistakes to avoid

  • !Driving the sensor's RX from a 5 V Uno pin without a divider.
  • !Powering the fan from 3.3 V, so it reads zero or nonsense.
  • !Trusting readings in fog or very humid air.
  • !Forcing jumper wires into the 1.25 mm connector instead of using the adapter.
09

Frequently asked questions

PMS5003 or PMS7003?

Same data and accuracy. The PMS7003 is slimmer; the PMS5003 is easier to mount with its side inlet.

Does it work at 3.3 V?

The data pins are 3.3 V, but the fan needs 5 V.

How accurate is it?

Good for trends and comparing places, within about 10 to 15 % at normal levels, but not a certified reference monitor.

How often does it send data?

About once a second in active mode, or on request in passive mode.

How long does it last?

About 3 years of continuous running; sleeping between readings extends it.

Parts for this guide

  • Plantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm
    ₹2,119View
  • Plantower PMS7003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5V, Range: 0.3~10 µm
    ₹1,849View
  • PMS7003 PM2.5 Air Particle Dust Sensor Module
    ₹1,690View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 0.96" OLED Display 128x64
    ₹139View
  • 8P Switch Board and Cable for PMS5003 Laser Dust Sensor – Interface PCB
    ₹259View
  • 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 & MicrocontrollersConcept explainerBeginnerUART and Serial CommunicationA UART sends data one bit at a time over one wire with no shared clock, so both ends must agree on the speed, called the baud rate (9600 and 115200 are common).4 min read · Electronics Fundamentals

Sources

  • Plantower PMS5003 series data manual
  • Plantower PMS7003 series data manual
  • PMS library documentation (Mariusz Kacki)

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 PMS5003 / PMS7003 sensor isPMS5003 / PMS7003 sensor pinoutWiring the PMS5003 / PMS7003 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,343

Plantower PMS5003 PM2.5 Laser Particle Concentration Sensor, UART, 0~500 µg/m³, 5 V, Range: 0.3~10 µm · 4-Channel Logic Level Converter (BSS138) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Indoors in a clean room PM2.5 is often under 30; Indian city air is often 60 to 150 µg/m³.

Serial monitor115200 baud
PM1.0: 32  PM2.5: 47  PM10: 62

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