modify the period of getting ultrasonic distance