PMS3003 PLANTOWER How to read data and use humidity (Air Quality)

One more thing. The code from dfrobot is for a PMS1003 (aka G1) sensor. The main difference is that the PMS1003 messages are 32 byte long and the PMS3003 are 24 byte long. The relevant part of the message has the same format. You can find some info about the hardware here.