mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 17:52:08 +02:00
Implement relative humidity correction
This commit is contained in:
@ -198,7 +198,8 @@ float PMS5003T::getTemperature(void) {
|
||||
*/
|
||||
float PMS5003T::getRelativeHumidity(void) {
|
||||
float temp = pmsData.AMB_HUM;
|
||||
return temp / 10.0f;
|
||||
temp = temp / 10.0f;
|
||||
return temp * 1.259 + 7.34;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user