ultrasonic hc_sr04 logic