Added PIR sensor support