Vl53l0x returns out of range

I have problem with vl53l0x interfacing STM32F7. I used the library and it started working for several hourd and suddenly stopped working. It just returns 8192. after a few hours I could get it work again with no change in code, but it doesn’t work now again. I have no idea what is the problem.
VL53L0X.h (6.3 KB)
VL53L0X.c (33.8 KB)


We have not seen that kind of behavior before, but intermittent problems like that can often be the result of a connection issue. Can you post some pictures of your setup?