Download and run the program for Distance sensor and see how the robot stops