Sensors: PMS5003

General Information

  • Type: Laser
  • Connection: Serial @ 3.3V
  • Fan: Yes
  • Power saving: Yes, currently not supported
  • Library Reference: SENSOR_PMS5003
  • Datasheet: Chinese

This sensor is very similar to the DFRobot PM2.5 sensor.

This sensor communicates at 3.3V and does NOT include a level shifter. If you can’t use an external level shifter we don’t recommend this sensor.

How to connect

According to the datasheet, the pin closest to the sensor’s edge is Pin 8.

Sensor Pin Name Description Arduino Pin WiFi Shield Pin
Pin 1 VCC Power 5V 5V
Pin 2 GND Power Ground GND GND
Pin 3 Set Unused
Pin 4 Rx Receive data 7 STX
Pin 5 Tx Transmit data 8 SRX
Pin 6 Reset Unused
Pin 7 Not connected Unused
Pin 8 Not connected Unused

Do not connect this sensor directly to the Arduino. It communicates at 3.3V and the higher voltage of the Arduino might damage it.


  • Operating Voltage: 4.95 – 5.05 V
  • Maximum input current: 100mA
  • Operating Temperature Range: -20 – 50 °C
  • Operating Humidity Range: 0 – 99%

Data packet

The data packet is identical to the DFRobot sensor.