How can I create scene/automation based on two H&T device readings

  • I have 2 Shelly H&T and 1 Shelly realay 1PM. I want to trigger relay (turn on vent) in situation, when difference between two (one in ceiling, another near floor) Shelly H&T readings are greater than X.

    How can I create such scenario/secne.