PIR sensor for occupancy tracking