-
Notifications
You must be signed in to change notification settings - Fork 10
luxFactor
With this factor, you can calibrate the sensor with an professional lux meter.
It is also useful, to calibrate 2 BH175 sensors with different sensitivities to the same sensitivity.
float luxFactor;
public value, that can be set to any value in the range of float.
This is the conversion factor to Lux. This value is chip depended and can vary between 0.96 and 1.44.
The default value is 1.2.
If you calculate the deviation for 100 lux (at luxFactor = 1.2) you will get a range between 83 Lux and 125 Lux with the limits above.
The formula used by this library to calculate Lux is:
Lux = raw value / luxFactor * Factor * 69 / mtreg
.
So, if you increase the luxFactor you will decrease the Lux value.
(Factor is 0.5 at BH1750Quality BH1750_QUALITY_HIGH2
and 1 at BH1750Quality BH1750_QUALITY_HIGH
and BH1750_QUALITY_LOW
.