combine warning and ultrasonic distance detecting