Strange Node-Red behaviour Aqara motion sensor illuminance

Hi, i’m currently testing a Aqara motion sensor and node.

If the light is not already on it has to check the illuminance. If it’s over 40, than the light should not turn on.
If its under 40 it should go on.
Now it’s reading 19 but it node-red it says its 100.
What am i doing wrong?

image