How create a dependency in a preset?

I connected a BH1750 to a D1 mini and compiled WLED with usermod.
The sensor is recognized and the LUX value is displayed under “Info”.

But how can I read out the value in a preset and create a dependency? e.g. if luminance < 100Lx >> switch LEDs on