moved magnetic sensor to DC pin