obstacle avoiding sketch for rduino bot

I have buy an rduino bot from robosoft system at Lamington road in Mumbai My request is that I have tried but I was not success so I request you please solve this I want obstacle avoiding sketch

I want obstacle avoiding sketch

This code will assure that your robot never runs into an obstacle.

void setup()
{
}

void loop()
{
   stop();
}

void stop()
{
   // Put code here to make your motors stop
}

Perhaps you could explain what you really want.