The SENSORS category has a block for interacting with a peripheral PING))) Ultrasonic Distance Sensor, connected through the Hacker Port (on P0 - P5).

Ping))) distance

The Ping))) distance block returns the distance measurement between the sensor and an object located within its detection range (in inches or centimeters - set by the drop-down menu). The PING))) sensor can detect an object located between 1 inch (3 cm) and 125 inches (315 cm) away. The PING))) sensor must be connected to a digital hacker port location (P0 - P5) matching the selection on the block.