In the vl6180 vl6180_initialise function if register 0x016 doesn't return a 1 the recommended registers don't get set. I have two of these sensors and neither ever seems to return a 1. Oddly enough it seems measure distance just fine without them getting set.