Digital measuring techniques for high accuracy ultrasonic sensor application