ADCin 0 has the wire guidance sensor as input (which is the wire sensor)
There are 2 sensor signals on the schematic, but the code only checks one ADC signal?

Does defining it as a sensor light do something special?

Why not just ignore that code, use a PBP ADC sample program and use 2 channels (left and right sensor). Check the level of the signals and react accordingly?

Robert