Made sure magnetic field sensor sample is stopped when the sensor is
stopped