Way-1 Exploration: Add the Ultrasonic sensor:

Connect the Ultrasonic sensor to the brick:

Connect the Ultrasonic sensorto port 4:

IMG-2013

The 1, 2, 3, 4 ports are for sensors

The A, B, C, D ports are for motors.

Connect the Ultrasonic sensorto port 4