PIR sensor firmware