I programmed a rover with four motors that could move forward and backward. It also had an ultrasonic distance sensor that was position on a servo that would rotate. The sensor could tell if there were any objects nearby, and it would stop if it sensed anything.