MallocArray / airgradient_esphome

ESPHome definition for an AirGradient DIY device to send data to HomeAssistant and AirGradient servers
GNU General Public License v3.0
244 stars 42 forks source link

Raw humidity readings should be used for correction, not corrected #92

Closed nagisa closed 1 month ago

nagisa commented 1 month ago

According to https://www.airgradient.com/blog/epa-correction-and-airgradient/ the RH variable in the correction formulae refers to the raw RH reading from the 5003t sensor.

It uses different corrections for different raw PM concentrations (PAcfatm). The variable ‘RH’ stands for raw relative humidity readings from the low-cost monitor. The formulas below were taken from the EPA PDF.

However the implementation here uses the corrected humidity values id(humidity) rather than id(humidity_raw).

MallocArray commented 1 month ago

Thank you for opening this. Addressed