Implement relative humidity correction

This commit is contained in:
Phat Nguyen
2024-02-29 10:39:17 +07:00
parent b94112e22a
commit 66c53daed6

View File

@ -198,7 +198,8 @@ float PMS5003T::getTemperature(void) {
*/ */
float PMS5003T::getRelativeHumidity(void) { float PMS5003T::getRelativeHumidity(void) {
float temp = pmsData.AMB_HUM; float temp = pmsData.AMB_HUM;
return temp / 10.0f; temp = temp / 10.0f;
return temp * 1.259 + 7.34;
} }
/** /**