added logging to magnetometer reading