I'm fairly new to all this Arduino stuff but I seem to be getting the hang of it
I'm developing a photometer using the BH1750 GY-30 breakout board as a detector.
My initial tests have gone well but I see a maximum output level of 54612 lux instead of the 65535 expected.
I've searched this forum and I see multiple reports of the same problem and no apparent resolution.
I then focused on the bh1750.h library I had installed from GitHub and wrote my own alternative code for interacting with the BH1750 without using the library.
Now I saw the full 65535 lux range.
Returning to the library, I opened up the BH1750.h source code and found in the very last line in that library, that all readings are divided by a factor of 1.2.
Guess what: 65535/1.2 = 54612!
So now I've found the cause of the mystery.
So my question is: why is this factor of 1.2 there in the first place?
I would rather have the raw values and scale them afterwards than have the dynamic range actually reduced by a factor of 1.2. That's not what I paid for