Teach you I can not young padawan Until you explain your problem properly. Tell us what you have done so far and why you struggle. The easiest way to do this, is with schematics, drawings, or code example. To be honest would you have asked your teacher about help, in the same style as your first postI am using 18F452 mircoprocessor i want to use the line sensor to detect in order to move the motor, would u guide me?