How to handle humidity and dehumidifier

In my basement I regularly hang wet clothes. This leads to higher humidity which triggers a dehumidifier which runs for a specific time period or until a threshold is reached.

During winter though this threshold is different to summer. What is the best way to handle this?

I was thinking about taking the average or median of the last 24 hours and trigger if the humidity is x % above and continue until the average + y% is reached.

Any thoughts on this?

See this graphic for a typical event:

In the summer the humidity to start with will be higher of course.