i want to know that,how to write a program in C to detect a object infront a robot.