vl53l1x gives an incorrect and very inconsistent distance after 40 cm
I have two vl53l1x sensors. At first they were working coorectly. But after a while the first one gives right distance but the second one started to doesn't give right distance after 40cm. its regulators output is 3.3V. here is the vl53l1x code that I used.
Is there a possibility that the second vl53l1x is corrupt or how could it be corrupted?
If it is corrupt, why can it read up to 40cm?
