event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD