Door Sensor not triggered in x minutes, publish mqtt message

Hi, does anyone have or can point me in the direction of a flow that publishes an mqtt message if a door sensor hasnt been opened in the last 10 minutes?