Infrared Sensor Reading Problem

Which sensor model are you using?

One I am thinking of, would mean you have to keep the sensor in close proximity to the line. So how far away from the line is it?

Also, what is the orientation? parallel to the line or perpendicular?