handles input from two HC-SR04 ultrasonic sensors