Reconstructed line sensor code

Changed code to adapt to 5x loop