Arduino magnetometer calibration