Motion sensors automatically turn outdoor lights on when they detect motion and turn them off a short while later. They are very useful for outdoor security and utility lighting. Because utility lights and some security lights are needed only when it is dark and people are present, the best way to control might be a combination of a motion sensor and photosensor.