closed loop magnetic sensor