VL53L1X Range Status

I get the range status and it returns a value of 7. How do I correct this?

Hi KPack,

That value means the sensor had deviations in the range returned larger than what it would expect and therefore is reporting the values may not be valid. This can happen from a few different reasons and instead of paraphrasing, take look at [this reply from one of the ST employees about RangeStatus returning 7. Hopefully, that will help shed some light on why you are seeing that. My guess is the sensor was moving so the variation was large enough to throw that response.](What does mean "RANGE_STATUS = 7 (WRAPPED_TARGET) ... - STMicroelectronics Community)