Line following with magnetic sensor

Is this correct ?

That part is. The use of goto in the complete program is WRONG!