thnxs...i use 16f877a board to control the robot but i want ask u if we need make a other circuit to connect the sensor with 16f877a or just direct to the pic?
Please refer to the schematic provided in PR23, you will learn by understanding it. Yes, for this sensor, is just direct connection for power and analog signal, but you need to connect to analog input pin of PIC.