Replace schedex node with lux reading

Right now I use schedex node to turn on the light when is sunset and turn them off at 00:00 clock.

But now I have just got a lux reader that can give me a value how bright it is outside.
Was thinking maybe use that so when is example 100lux it turn on the light and when 00:00 it turn off.

But I’m not sure what node to use.