This is an infrared based sensor array which can be used in advanced line following and grid navigation robots. The array has 8 individual sensors placed next to each other. Each sensor has its own digital output and can sense the presence of a line and indicate it with a 5V logic output. On reading the the digital state of the eight sensors, the user can not only detect the line but also get to know how far the center of the robot is from the line. When all sensors sense the line, the robot is on an intersection.