If the output circuit of the light sensor is equipped with a capacitor coupling network (C1/R2), then only variations in tight Level are passed. That will prevent ambient Light modulated by such sources as ceiling fans or tree branches outside the window blowing the wind from also exciting the alarm.