When the cone of light is broken, the alarm starts. To make it work both night and day put the LDR and the lamp in a piece of black tube in opposites sides of the doorway. If you use a 12V/5W lamp, you should be able to set the distance between the LDR and the lamp to at least 2 metres.