The DFRobot URM04 v2.0 Ultrasonic Sensor allows you to determine the exact distance of an obstacle in the sonar field of view. The cleverness of your robot will depend on a sensitive sensor similar to the one bats use to know their position and track prey. With advanced programming, you can design compensators in order to perfectly control your motors according to the obstacle's distance.