Hi Kratos, thanks for sharing.
When I run the code a second time, it also works for me.
I only described the reboot thing to make clear, that after a "cold" start the first reading is 0.
Whereas after a "warm" reboot, the first reading works.
I also suspect the sensor needing a wakeup call
