Comment cabler le pmsA003 :

Source : datasheet : https://www.gotronic.fr/pj2-pmsa003-series-data-manua-english-v2-5-2083.pdf

20211220_154625.jpg

Code :

PMSA003 is identical to PMS7003

The code for pms7003 is here : https://github.com/tomek-l/pms7003

Github file :

pms7003-master.zip

Really done :

sudo pip3 install pms7003

Code python :

sudo nano pms_pi-py
from pms7003 import Pms7003Sensor, PmsSensorException

if __name__ == '__main__':

    sensor = Pms7003Sensor('/dev/serial0')

    while True:
        try:
            print(sensor.read())
        except PmsSensorException:
            print('Connection problem')

    sensor.close()

Sentence

The preview code show this sentence :