Updated code includings line sensor