Also, you could use two sonar sensors at the front of the robot at an angle from each other. It's simple to implement and program, but it only covers the front of the robot (The back remains open). Personally, I think you should try to put the two sonars on top of a single scanning servo. This is what Admin did with one of his older robots (I forgot the name).