Hmmm, can you be a little bit more specific (I may be missing something, sorry)? The light turns off when the specified time has elapsed AND the light sensor indicates "darkness"?