handle changes to PIR output