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. ›Optical Dust Sensors

Component guide · Intermediate · 4 min read

Optical Dust Sensors

Sharp GP2Y1010AU0F, GP2Y1014AU0F and GP2Y1023AU0F, Waveshare and DFRobot GP2Y1010 Modules, DSM501A, Grove PPD42NS, Winsen ZPH02 and MemsFrontier MPM30 Infrared PM Sensors

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) isSharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) pinoutWiring the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These low-cost sensors shine an infrared LED through the air and measure light scattered by dust. Sharp GP2Y1010 and GP2Y1014 give an analog voltage when you pulse the LED; GP2Y1023 gives a PWM output. DSM501A, PPD42NS, ZPH02 and MPM30 use a heater to draw air and output low-pulse time. They show trends and smoke well, but laser sensors are far more accurate for PM2.5 numbers.

Key specs at a glance

Principle
Infrared LED scattering, no laser
Sharp output
GP2Y1010/1014 analog; GP2Y1023 PWM
Pulse timing
LED on 0.32 ms every 10 ms, sample at 0.28 ms
Infrared PM sensors
DSM501A, PPD42NS: low-pulse occupancy; ZPH02, MPM30: UART or PWM
Supply
5V typical, Sharp LED needs 150Ω and 220µF
Accuracy
Trend indication, not calibrated µg/m³

Models in this guide

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

  • Option 1Sharp Microelectronics GP2Y1010AU0F Dust Sensor, Analog Output, Range: 0~1500 µg/m³₹549
  • Option 2Sharp Microelectronics GP2Y1010AU0F PM2.5 Dust & Smoke Particle Sensor Module₹373
  • Option 3Sharp Microelectronics GP2Y1014AU0F Dust Sensor Module – Optical Detection₹619
  • Option 4Sharp Microelectronics GP2Y1014AU0F Dust Sensor, Analog Output, High Precision, Range: 0~1500 µg/m³₹359
  • Option 5Sharp Microelectronics GP2Y1014AU0F Optical Dust Sensor, PM2.5, Analog Output, 5V, 0-0.5 mg/m³₹599
  • Option 6Sharp Microelectronics GP2Y1023AU0F Dust Sensor, Digital PWM Output, High Sensitivity, Range: 0~750 µg/m³₹689
01

What the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) is

The Sharp GP2Y1010AU0F and similar infrared dust sensors detect dust and smoke by shining an IR LED through an air hole and measuring scattered light.

The Sharp sensor needs a 150Ω resistor and 220µF capacitor on the LED supply; the Waveshare and DFRobot modules include these and a divider so 3.3V boards can read the output. Pulse the LED from a digital pin, wait 280 µs, read the analog pin, then switch it off.

DSM501A and PPD42NS must stand upright so the heater can pull air through. Count the total low-pulse time over 30 seconds and convert it with the datasheet curve. Give them a minute to warm up after power on.

02

Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) pinout

The pins on the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) and what each one does.

PinFunction
V-LEDLED supply through 150Ω (Sharp)
LEDLED control, active low on Sharp
VoAnalog output (Sharp)
P1 / P2Low-pulse outputs on DSM501A and PPD42NS
VCC / GND5V supply
PinFunction
V-LED
LED supply through 150Ω (Sharp)
LED
LED control, active low on Sharp
Vo
Analog output (Sharp)
P1 / P2
Low-pulse outputs on DSM501A and PPD42NS
VCC / GND
5V supply
03

Wiring the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30)

Mount the sensor with the air hole unblocked and away from fans that blow straight into it.

Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) pinArduinoNote
Sharp V-LED5V via 150Ω, 220µF to GNDModules have this built in
Sharp LEDD7LOW turns the LED on
Sharp VoA0Divide for 3.3V boards
DSM501A Vout2D8PM1 and up, pulseIn LOW
Sharp V-LED
Arduino:
5V via 150Ω, 220µF to GND
Note:
Modules have this built in
Sharp LED
Arduino:
D7
Note:
LOW turns the LED on
Sharp Vo
Arduino:
A0
Note:
Divide for 3.3V boards
DSM501A Vout2
Arduino:
D8
Note:
PM1 and up, pulseIn LOW
04

Example code

The 0.6 V clean-air offset varies per sensor; measure it in clean air and use your own value.

Read a Sharp GP2Y1010 dust sensor (Uno) · Arduino C++Verify & upload in Electrolark
const int ledPin = 7;
const int voPin = A0;

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
  digitalWrite(ledPin, HIGH);  // LED off
}

void loop() {
  digitalWrite(ledPin, LOW);   // LED on
  delayMicroseconds(280);
  int raw = analogRead(voPin);
  delayMicroseconds(40);
  digitalWrite(ledPin, HIGH);  // LED off
  delayMicroseconds(9680);

  float v = raw * 5.0 / 1023.0;
  float dust = (v - 0.6) * 170.0;   // rough µg/m3, set 0.6 V from clean air
  if (dust < 0) dust = 0;
  Serial.print("Vo "); Serial.print(v, 2);
  Serial.print(" V  dust ~"); Serial.print(dust, 0); Serial.println(" ug/m3");
  delay(1000);
}
05

Setup and tuning

LED circuit

add the 150 Ω resistor and 220 µF capacitor on the LED supply, as in the datasheet.

Timing

pulse the LED for 0.32 ms and sample the output 0.28 ms after turning it on.

Output

read the analog voltage and convert to dust density with the datasheet slope.

Calibration

record the clean-air voltage as zero.

Limits

these sensors are indicative; use laser PM sensors for PM2.5 values.

06

What you need

Shop this list16 of 17 found in our store · ₹8,504

  • Sharp Microelectronics GP2Y1010AU0F Dust Sensor, Analog Output, Range: 0~1500 µg/m³: the part this guide coversSharp Microelectronics GP2Y1010AU0F Dust Sensor, Analog Output, Range: 0~1500 µg/m³₹549
  • Sharp Microelectronics GP2Y1010AU0F PM2.5 Dust & Smoke Particle Sensor Module: another version this guide coversSharp Microelectronics GP2Y1010AU0F PM2.5 Dust & Smoke Particle Sensor Module₹373
  • Sharp Microelectronics GP2Y1014AU0F Dust Sensor Module – Optical Detection: another version this guide coversSharp Microelectronics GP2Y1014AU0F Dust Sensor Module – Optical Detection₹619
  • Sharp Microelectronics GP2Y1014AU0F Dust Sensor, Analog Output, High Precision, Range: 0~1500 µg/m³: another version this guide coversSharp Microelectronics GP2Y1014AU0F Dust Sensor, Analog Output, High Precision, Range: 0~1500 µg/m³₹359
  • Sharp Microelectronics GP2Y1014AU0F Optical Dust Sensor, PM2.5, Analog Output, 5V, 0-0.5 mg/m³: another version this guide coversSharp Microelectronics GP2Y1014AU0F Optical Dust Sensor, PM2.5, Analog Output, 5V, 0-0.5 mg/m³₹599
  • Sharp Microelectronics GP2Y1023AU0F Dust Sensor, Digital PWM Output, High Sensitivity, Range: 0~750 µg/m³: another version this guide coversSharp Microelectronics GP2Y1023AU0F Dust Sensor, Digital PWM Output, High Sensitivity, Range: 0~750 µg/m³₹689
  • Waveshare GP2Y1010AU0F Dust Sensor Module – Optical Air Quality Sensor: another version this guide coversWaveshare GP2Y1010AU0F Dust Sensor Module – Optical Air Quality Sensor₹1,249
  • DFRobot Gravity Dust Sensor Adapter – Plug & Play GP2Y1010AU: another version this guide coversDFRobot Gravity Dust Sensor Adapter – Plug & Play GP2Y1010AU₹436
  • DSM501A PM2.5 Dust Sensor Module for Arduino & Air-Conditioners – Analog Output: another version this guide coversDSM501A PM2.5 Dust Sensor Module for Arduino & Air-Conditioners – Analog Output₹582
  • Seeed Studio Studio Grove Dust Sensor PPD42NS – PM2.5 & PM1.0 Dual PWM Output: another version this guide coversSeeed Studio Grove Dust Sensor PPD42NS – PM2.5 & PM1.0 Dual PWM Output₹1,159
  • Winsen ZPH02 PM2.5 Particle Sensor – Infrared Counting, 5V DC, EH2.54-5P Interface: another version this guide coversWinsen ZPH02 PM2.5 Particle Sensor – Infrared Counting, 5V DC, EH2.54-5P Interface₹699
  • MemsFrontier MPM30-C4 Infrared PM Sensor (4 Pin) – ZH1.5mm-4P Socket, UART/PWM Output: another version this guide coversMemsFrontier MPM30-C4 Infrared PM Sensor (4 Pin) – ZH1.5mm-4P Socket, UART/PWM Output₹509
  • MemsFrontier MPM30-C6 Infrared Particulate Matter Sensor (6-Pin ZH1.5mm Socket): another version this guide coversMemsFrontier MPM30-C6 Infrared Particulate Matter Sensor (6-Pin ZH1.5mm Socket)₹549
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
  • Solderless breadboard: to build without solderingSolderless Breadboard₹68
  • Electrolytic capacitor: bulk capacitance across the supplyElectrolytic Capacitor₹16
07

Alternatives and when to choose them

  • ✓PM2.5 dust sensors: all types side by side.
  • ✓Laser PM sensors: accurate PM2.5 numbers.
  • ✓PMS5003 and PMS7003: the common laser sensor.
08

Common mistakes to avoid

  • !Wrong LED timing.
  • !Missing LED resistor and capacitor.
  • !Expecting PM2.5 accuracy.
  • !No averaging.
09

Frequently asked questions

Why does my GP2Y10 always read the same?

The LED timing is wrong; pulse and sample at the datasheet times.

Can it measure PM2.5?

Not accurately; use a laser sensor such as the PMS5003 for PM2.5.

Why do readings vary a lot?

The sensor is noisy, so average many samples before using the value.

Do I need the resistor and capacitor?

Yes. They store and limit the current for the LED pulses.

Can it detect cigarette smoke?

Yes. It responds strongly to cigarette and other smoke.

Parts for this guide

  • Sharp Microelectronics GP2Y1010AU0F Dust Sensor, Analog Output, Range: 0~1500 µg/m³
    ₹549View
  • Sharp Microelectronics GP2Y1010AU0F PM2.5 Dust & Smoke Particle Sensor Module
    ₹373View
  • Sharp Microelectronics GP2Y1014AU0F Dust Sensor Module – Optical Detection
    ₹619View
  • Sharp Microelectronics GP2Y1014AU0F Dust Sensor, Analog Output, High Precision, Range: 0~1500 µg/m³
    ₹359View
  • Sharp Microelectronics GP2Y1014AU0F Optical Dust Sensor, PM2.5, Analog Output, 5V, 0-0.5 mg/m³
    ₹599View
  • Sharp Microelectronics GP2Y1023AU0F Dust Sensor, Digital PWM Output, High Sensitivity, Range: 0~750 µg/m³
    ₹689View
  • Waveshare GP2Y1010AU0F Dust Sensor Module – Optical Air Quality Sensor
    ₹1,249View
  • DFRobot Gravity Dust Sensor Adapter – Plug & Play GP2Y1010AU
    ₹436View
  • DSM501A PM2.5 Dust Sensor Module for Arduino & Air-Conditioners – Analog Output
    ₹582View
  • Seeed Studio Grove Dust Sensor PPD42NS – PM2.5 & PM1.0 Dual PWM Output
    ₹1,159View
  • Winsen ZPH02 PM2.5 Particle Sensor – Infrared Counting, 5V DC, EH2.54-5P Interface
    ₹699View
  • MemsFrontier MPM30-C4 Infrared PM Sensor (4 Pin) – ZH1.5mm-4P Socket, UART/PWM Output
    ₹509View
  • MemsFrontier MPM30-C6 Infrared Particulate Matter Sensor (6-Pin ZH1.5mm Socket)
    ₹549View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Solderless Breadboard
    ₹68View
  • Electrolytic Capacitor
    ₹16View
Shop Dust, Particulate Matter (PM) & Smoke Sensors

Projects that use it

Put this into practice: 12 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourDust sensor air monitorView projectBeginner · 1 hourConstruction dust alarmView projectIntermediate · 2 hoursIncense and smoke room loggerView project
Browse all 12 projects

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 guideIntermediatePMS5003 and PMS7003 PM2.5 SensorThe Plantower PMS5003 and the slimmer PMS7003 are laser particle sensors.4 min read · SensorsBuying guideIntermediateAir Quality SensorsCompare particle, CO2 and VOC sensors for an air monitor: PMS5003 and SDS011, NDIR CO2 vs eCO2, wiring, warm-up, power and placement for honest readings.3 min read · Sensors

Sources

  • Sharp GP2Y1010AU0F datasheet
  • Samyoung DSM501A datasheet
  • Shinyei PPD42NS datasheet

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 Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) isSharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30) pinoutWiring the Sharp GP2Y1010, GP2Y1014, GP2Y1023 and infrared dust sensors (DSM501A, PPD42NS, ZPH02, MPM30)Example 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 guide8 items · ₹4,873

Sharp Microelectronics GP2Y1010AU0F Dust Sensor, Analog Output, Range: 0~1500 µg/m³ · Sharp Microelectronics GP2Y1010AU0F PM2.5 Dust & Smoke Particle Sensor Module · Sharp Microelectronics GP2Y1014AU0F Dust Sensor Module – Optical Detection · Sharp Microelectronics GP2Y1014AU0F Dust Sensor, Analog Output, High Precision, Range: 0~1500 µg/m³ · Sharp Microelectronics GP2Y1014AU0F Optical Dust Sensor, PM2.5, Analog Output, 5V, 0-0.5 mg/m³ · Sharp Microelectronics GP2Y1023AU0F Dust Sensor, Digital PWM Output, High Sensitivity, Range: 0~750 µg/m³ · Waveshare GP2Y1010AU0F Dust Sensor Module – Optical Air Quality Sensor · DFRobot Gravity Dust Sensor Adapter – Plug & Play GP2Y1010AU

Run itChange the inputs and watch the output

Clean air reads about 0.6 V. The dust number is a rough estimate.

Serial monitor9600 baud
Vo 0.95 V  dust ~59 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