Line following with magnetic sensor