An obstacle-avoiding robot uses ultrasonic sensors to detect and avoid obstacles in its path. It continuously measures distance and changes direction when an object is too close. The robot moves autonomously without human intervention. This makes it ideal for navigation in unknown environments.