A passive infrared sensor (PIR sensor) is an electronic sensor. PIR sensors are commonly used in security alarms and automatic lighting applications.