Arduino magnetic sensor