How many sensors do you have and what is their configuratation? (I.E. We have three sensors. The middle one and one of the side ones read the line when the robot is going off the moving away from the line.) If you can give some details like that, somebody will probably whip a quick example up. (Maybe me...

)