PMS5003T/PMS5003ST signed temperature
avaldebe opened this issue · 0 comments
avaldebe commented
Just found out a English datasheet for the PMS5003ST
, which says that the temperature is a signed integer. This total sense as the temperature can be negative.
Alas, the _unpack
unpack method inhereted from PMS3003
decodes the message as unsigned integers.
PyPMS/pms/sensor/pm/PMS3003.py
Lines 61 to 63 in 5b7d05f
Therefore, negative temperatures will show as huge values.