avaldebe / PMserial

Arduino library for PM sensors with serial interface
MIT License
53 stars 21 forks source link

Temperature/Humidity and Formaldehyde calculation are wrong for 5003ST #16

Closed fmatray closed 3 years ago

fmatray commented 3 years ago

Hello, I just test the library with a PMS5003ST and those values were wrong :

The problems were :

I post a PR to correct theses points.

I noticed a difference between the sensor and a regular thermometer. So I also add a feature to add offset to temperature and humidity to correct theses values :

This is based on the library GHTNew (https://github.com/RobTillaart/DHTNew).