Automations get another sensor if not updated


I would like to enhance a bit my automations. I have a pool and I have an automations that turns on the pump if the temperature of a sensor (netatmo outdoor sensor) goes beyond 1 degrees.

What I would like to do is add a rule to check the last update of the sensor and if updated < 30 minutes ago take the netatmo sensor. If more than 30 mins ago, take another sensor that has been updated before that date

No one to reply on this?
Basically i would need a condition to check if an entity hasn’t been updated from more than 30 minutes do another action
is it possible?