Automate humidity sensor and fan

I have installed a Xiaomi Humidity sensor in the bathroom that triggers a flow that puts on the ventilation with a KUKA on/off.

In combination with the app ‘countdown’ the ventilation stays on when the humidity is above 70%, evertime the humidity changes and it’s still above 70% the countdown will expand the ‘on-time’ with 5 minutes. Works great.