mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-17 10:42:08 +02:00
Add PM2.5 correction formula, #182
This commit is contained in:
@ -161,6 +161,17 @@ float PMS5003T::getRelativeHumidity(void) {
|
||||
return pms.getHum()/10.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Correct PM2.5
|
||||
*
|
||||
* @param pm25 PM2.5 raw value
|
||||
* @param humidity Humidity value
|
||||
* @return float
|
||||
*/
|
||||
float PMS5003T::pm25Compensated(int pm25, float humidity) {
|
||||
return pms.pm25Compensated(pm25, humidity);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check device initialized or not
|
||||
*
|
||||
|
Reference in New Issue
Block a user