Calibrating the Hardware
Open the IOLab software and plug in the USB dongle. Then turn on your device. After the device has connected, click on the settings tab and choose Calibration>Remote 1>Accel – magn – gyro. Then follow the instructions to calibrate the magnetometer.