Trigger when value was below and now above

Hello,

I am pretty new in this and just started to do my first configuration. Just have one for sure easy question. I want to make a trigger when the value was below 50 and is again above 50. Could somebody tell me how? Search already a lot but could only find any usefull. Thanks in advance…

  • alias: Coronata - enough water
    trigger:
    platform: numeric_state
    entity_id: sensor.coronata_moisture
    above: 50
    action:
    service: notify.pflanzentwitter
    data:
    message: “Coronata: Ja me sinto melhor. Obrigado pela agua. \U0001f3a0”