Problem PMS5003 (not enough values to unpack)

Hello everyone, I have recently started using the Enviro+ with PMS5003 (I am a beginner), I have the other sensors working, though when I run the particulates.py I can not get any data. I receive the following message, anyone know how to solve this issue? Thank you !

hro@pm1:~/enviroplus-python/examples $ python3 particulates.py
2024-03-09 17:21:03.068 INFO particulates.py - Print readings from the PMS5003 particulate sensor.

Press Ctrl+C to exit!

Traceback (most recent call last):
File “/home/hro/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)

I have a similar problem although my Enviroplus was working but now it is not. After much searching I have found this (without help from Pimoroni)
enter pip install pms5003==0.0.5 for the particulates
and
enter pip install st7735==0.0.5 for the lcd

Chris

1 Like

Thank you, indeed I managed to solve these issues by downgrading.