# PMS5003 + pi zero 2W Error

**URL:** <https://forums.pimoroni.com/t/pms5003-pi-zero-2w-error/24487>\
**Category:** Support\
**Created:** [March 19, 2024, 9:27pm UTC](https://forums.pimoroni.com/t/pms5003-pi-zero-2w-error/24487 "2024-03-19T21:27:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![G3CKO](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@G3CKO](https://forums.pimoroni.com/u/G3CKO)\
**Post date:** [March 19, 2024, 9:27pm UTC](https://forums.pimoroni.com/t/pms5003-pi-zero-2w-error/24487/1 "2024-03-19T21:27:54Z")

</div>

Hello everyone, I am working with a raspberry pi zero 2W running on bullseye OS with the enviro+ and PMS5003.  
Everything except for the particle sensor is working, whenever I try to run particulates.py the following error message pops up:

Traceback (most recent call last):  
File “/home/pi/enviroplus-python/examples/particulates.py”, line 18, in pms5003 = PMS5003()  
File “/usr/local/lib/python3.9/dist-packages/pms5003/ **init**.py”, line 109, in **init**  
self.\_pin\_enable, self.\_pin\_reset = gpiodevice.get\_pins\_for\_platform(PLATFORMS)  
ValueError: not enough values to unpack (expected 2, got 0)

As some users suggested in other topics I downgraded to version 0.0.5 via “pip install pms5003==0.0.5”, but by doing that I get the following error:

Traceback (most recent call last):  
File “/home/filip/Pimoroni/enviroplus/examples/particulates.py”, line 24, in  
readings = pms5003.read()  
File “/home/filip/.local/lib/python3.9/site-packages/pms5003/ **init**.py”, line 127, in read  
raise SerialTimeoutError(“PMS5003 Read Timeout: Failed to read start of frame byte”)  
pms5003.SerialTimeoutError: PMS5003 Read Timeout: Failed to read start of frame byte

Is there any known issue with the OS or with the board / phat combo that could solve this issue?  
Thanks in advanced
