There are more and more innovative models that allow greater sensitivity to sunlight, with which you can adjust the threshold so that the switch fires at a certain level of darkness, thus setting a delay on and off with respect to the ambient light level.