@RWB , thanks for the pointer. I confused it with the PCB part number.
@ScruffR , thanks for pointing out the long range setting. I had looked into this and added code for various conditions without success. I used code from Kris Winer examples at https://github.com/kriswiner/VL53L0X in the file VL53L0X_Pololu_Ladybug.ino.
That code showed different settings for long range, high speed or high accuracy.
I then used the example code on the Web IDE and got similar results in either single or continuous mode. I can’t tell for sure, but it seems the sensor.init() function sets up for long range already.
Yesterday I realized that by placing the sensor (a Pololu board) at the head of a long table gives wrong results. If I place the sensor at the edge of the table, then I get the 8190mm I expect. It seems the light is reflecting from the surface of the table and fooling the sensor. This resolves the low measurements as I move the sensor inward from the edge of the table, but the distances are still wrong. Sometimes 100mm off.
I also added code to count the number of timeouts. It counted over 1000 in a couple hours.
So… withing 2 meters and pointing the sensor towards open space (no surface around the sensor board) it could work as a motion/presence sensor. I ignore the accuracy and look for a measurement below 8000mm. It fits my need for a really small motion sensor.
I can’t say it works well as a distance sensor.