Automation: Triggered when there is a difference between two humidity sensors

outdoor:室外,indoor:室内,fan switch:排气扇。
I saw this link yesterday, but I’m still not sure how to get specific values. I hope everyone can provide an example so that I can take a lessons from it. It’s better to write it in YAML, I know nothing about it.Thank you again for your help.