forked from airgradienthq/arduino
Add PM2.5 correction formula, #182
This commit is contained in:
1 parent
e58ce1cbea
commit
4b2a5f5540
8 files changed
+90
-4
No files matched your search
@@ -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