Trigger based on monitoring the state of some variable

Dear all,

I am completely new to prefect and having some trouble to understand if prefect already supports what I want to do. I’ll try to describe a minimal example of what I try to achieve.
I have one flow that polls some data from an endpoint. Let us say I retrieve a value I call status which can have values 0 and 1.
Now I want to run a flow when the value of status switches from 0 to 1. I am not too sure how to approach that. I expect there may be several way to achieve that, but I am missing if this something that could be supported by event triggers or not really. Should I detect myself the transition or could this be covered by existing features?

Thanks in advance