fix distanceSensor