Updated the LTR390 sensor library to include UVI and Lux parameters. The revision also includes a window_factor parameter to accommodate window transmission light loss (defaults to 1.0 = clear or no glass). UVI and Lux values are properly scaled for all gain and resolution settings.
The UVI and Lux calculations were taken directly from the data sheet assuming the sensor is factory calibrated. The UVI and Lux measurements were not verified with a calibrated source.
Updated the LTR390 sensor library to include UVI and Lux parameters. The revision also includes a
window_factor
parameter to accommodate window transmission light loss (defaults to 1.0 = clear or no glass). UVI and Lux values are properly scaled for all gain and resolution settings.The UVI and Lux calculations were taken directly from the data sheet assuming the sensor is factory calibrated. The UVI and Lux measurements were not verified with a calibrated source.
Use example:
To set the window transmission factor to other than the default 1.0: