A security system includes a sensor configured to detect a distance to an object along a direction in an area; an alarm panel in communication with the sensor; at least one of the sensor and the alarm panel configured to determine a state of the object in response to the distance to the object along the direction.