Lego EV3 ultrasonic sensor is used to measure the distance from objects. When you connect the sensor to one of input ports and tick variable distans you will see distance in inches. Sensor measures distances between 1 and 100 inches what gives 250 cm.
Below there are three examples of using the distance sensor:
- stop vehicle in front of the wall
- stop vehicle, shot and go