For detailed explanation on making of an Autonomous vehicle with GPS based navigation, go to http://sriramemarose.blogspot.in/
(this video is a part of the explanation. IR proximity sensor senses the obstacle in the range of 30cm and stops the DC motor)