Help with AutoMation Please

What i am looking to do is turn on a device based off an " input_number.box"

Input box is set at 40 if this number is higher then current " sensor.livng_room_humidity " turn on device

I tried Node Red and Hassio Automaton no luck