Let the robot stop for 3 seconds when an object detected