Problem with PMS5003 particulate matter sensor

I have successfully run the one line python library script and attached the particulate sensor to the enviroplus. I then tried running the various python examples. However, particulates.py hangs and doesn’t print any readings. I then ran all-in-one.py, which runs correctly up to the point it tries to read the particulate sensor. It then prints out the warning ‘failed to read PMS5003’. The script recognizes that the sensor is connected and I can hear the small fan running inside, but am unable to read any values.
I am running Raspbian Buster on a Pi 3 model B.

Any help would be appreciated.

Just a stab in the dark but does it have to warm up first? My BME680 has a heater for the air sensor that needs to run for a while before I can use that sensor.

I have left it for running for 10 minutes with no values printed. I could try leaving much longer.

I would think 10 minutes would be more than long enough? I don’t own one, just so you know.
You could try the requirements part from here,

Running the one-line setup script for the enviro+ loads the necessary libraries and other configurations given in the PMS5003 link. I have also manually checked that they have been implemented correctly and everything looks okay.

I “think” you have to run
curl -sSL https://get.pimoroni.com/enviroplus | bash
and
sudo pip install pms5003
And I think it actually needs to be
sudo pip3 install pms5003
If its Buster and you want to use Python 3.

Thanks for the reply. I had already run this one-line curl script. I did just try the pip/pip3 installs, but I get a message confirming that these requirements have been satisfied.
I have tried running the few lines of code for this sensor given in the tutorial, but get a ReadTimeoutError. It suggests this may happen and to try again, but it continues to give the timeout error under python and python3. I an going to try it with another SD card with Raspbian stretch to see if that makes any difference.

Ok, good luck, I don’t have any other ideas.

The particulates.py code runs successfully under Raspbian stretch using python3… There must be something in Buster that it doesn’t like. All the other examples are okay as well.

I’m not making excuses for Pimoroni, but Buster caught a lot of people / retailers out.
The Debian Buster release wasn’t even officially released when the Pi 4B was released. And only Buster will run on a Pi 4B. So they did an unofficial Raspbian Buster release so you could actually use your Pi 4B. I “think” the way it went down was retailers had the Pi 4B, but didn’t have an OS to run on it. Now they are playing catch up with what has changed in Buster. Especially the Lite version. Its missing pip and smbus to name a few. And as far as I know, there is no Python 2 support in Buster.
You can get any older Raspbian build here, I’ve ben posting this link quit a bit lately.
http://downloads.raspberrypi.org/raspbian/images/

Works fine on Buster with python3 for me.

Thanks for that, nice to know it works in Buster. I have several Pi setups still running Stretch, maybe even Jessie. Headless setups that work so if it ain’t broke don’t fix it comes into play. I am slowly working my way to Buster on some of my setups. I have 24 or so Pi’s kicking around so when I get board I redo one of them to see how it goes with what’s attached to it.