public void run() {
		while (running) {
			if (DeviceStatus.motionStatus != DeviceStatus.MotionStatus.UNREGISTERED) {
				if (sensor.pollMotionSensor() && DeviceStatus.motionStatus == DeviceStatus.MotionStatus.NO_MOTION) {
					Log.log("Motion detected", deviceName);
					DeviceStatus.motionStatus = DeviceStatus.MotionStatus.MOTION;
				} else if (!sensor.pollMotionSensor() && DeviceStatus.motionStatus == DeviceStatus.MotionStatus.MOTION) {
					DeviceStatus.motionStatus = DeviceStatus.MotionStatus.NO_MOTION;
				}
			}
			
			try {
				Thread.sleep(200);
				if (!running) break;
			} catch (InterruptedException e) {
			}
		} 
	}