Some sensors need a certain amount of time between taking samples.
Having more info on the sensor and full code may give someone a chance to help further
Code: Select all
sudo apt update sudo apt upgrade
The way to do it is to report your own post and ask the mods to move it.