Get ultrasonic sensor distance (cm) trig () echo () block is a reporter block available in sensors extension for evive and all Arduino boards. The block reports the distance of the nearest object from an ultrasonic sensor. It returns distance in cm. The trigger pin and echo pin are connected to a digital pin of evive which can be selected from the drop-down menu.
Note: This block is available in both Upload mode and Stage mode.