line sensor telemetry and control code