Added motion detection with PIR sensor.