Of course, averaging is always a good idea. What I wanted to say that the measurements seem to be very stable,
compared to the values from the gpiozero library. Please ee the attached graph from 60 measurements within a
3 min time period:
ADC values (every 3 seconds) with an LDR attaches.
The graph compares MSB measurement from the function I wrote with the measurements from
the function in the gpiozero library.
When coding I played around with the LSB mode ... Just for testing I used the 0.1 s wait time because it
is recommended in the datasheet. But of course, if you read 4 bytes at once, you could
calculate the ADC value from both the MSB and the LSB mode (and they should be the