Patent ID: 7045968

Claim:
A method of programming a switch having a processor and a memory to control an electric luminaire in an indoor space responsive to signals from a photosensor, the method comprising the steps of: (a) calculating a first plurality of sensor signal values when the photosensor is disposed at a first location within the space; (b) calculating a second plurality of sensor signal values when the photosensor is disposed at a second location within the space; (c) calculating a first threshold value for causing the switch to turn on the luminaire when light in the space is less than a first value; and (d) calculating a second threshold value for causing the switch to turn off the luminaire when light in the space is greater than a second value; and (e) storing the first and second threshold values in the memory, wherein the calculations performed in steps (c) and (d) are based on the sensor signal values calculated in steps (a) and (b).