Measure nightsky with TSL237

GoForSmoke:
You can count the time length of a number of pulses, the more you count the more the per-pulse average will ... average out.

You can count how many pulses in a measure of time and lose a fraction of a pulse. The longer the time the less the lost fraction means.

pulses/time or time/pulses, both are ratios is all. Get one, you have the other.

That sound quite logical even to me :slight_smile: is there any good library/code that i can use for this? I believe that, after counting time, i will be have to translate to time to Hz, in some way, and that Hz is more realible than just counting Hz straight from the sensor?