A computer implement method for commissioning a sensor is described. The method includes monitoring for a commissioning event. Upon detection of the commissioning event, a switch is paired with a sensor. A doorway that is in a field of view of the sensor is identified. A boundary that separates a doorway area from a neighboring area that is in the field of view of the sensor is also identified.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH/DEVELOPMENT
 This invention was made with government support under Grant Numbers EE-003114 and 10085901 awarded by the U.S. Department of Energy. The government has certain rights in the invention.