Reading magnetometer data