Detect rapid relative rise of a sensor

Hi,

I installed a temperature sensor in my bathroom waste water vent. I would like to use this sensor to detect whether someone is taking a shower. You can see the process well in the picture below. When someone takes a shower, the value directly increases relatively quickly (1). After a shower, the value drops again quickly. And the next person takes a shower (2), the value increases relatively quickly again.
My idea, I would like to activate a binary sensor when showering is detected (i.e. a rapid increase regardless of the initial temperature) and deactivate the sensor again when the temperature drops quickly. For example, to switch on ambient lighting or to make the music louder while taking a shower. But I have no idea what the template should look like, maybe someone has already done something similar and can help me here?

Many Thanks.
Many greetings
Stephan

Wow, thank you for the very fast answer.

If I understood it correctly, it should work like this:
Two sensors, the first indicates that the temperature at a rate of at least

1 degree per minute | min_gradient: (1)/60 = 0.016
rises, and the second falls.

It will
300s | sample_duration: 5*60 = 300
saved.

There will be max.
60 | max_samples: 60
values saved.
Is that the right idea?

binary_sensor:
  - platform: trend
    sensors:
      shower_on:
        entity_id: sensor.esp32_abwasser_temp
        sample_duration: 300
        max_samples: 60
        min_gradient: 0.0083


      shower_off:
        entity_id: sensor.esp32_abwasser_temp
        sample_duration: 300
        max_samples: 60
        min_gradient: -0.0083

Many Greetings
Stephan