Hello @Recyclosaucisse

you already described it correctly: G26 can be IN or OUT; G36 is IN only.

Your defines need to be swapped: SENSOR_PIN 36 and RELAY_PIN 26.

Thanks
Felix