more work done on calibration of linesensor, still not quite working