updating ultrasonic sensor