Add magnetometer sensor support.