Hi...i think you're misunderstanding how the sensor works. The low threshold is active when any light is on the sensor, and the high threshold is active when a lot of light is on the sensor. In total darkness neither is active. If you want to detect darkness use a NOT gate with the low threshold output.