Entity state from past, timestamp from another entity

A simple approach could be to create an average sensor that averages the humidity over the last 2 hours.

Or use a statistics sensor and have it record the minimum

There’s also a blueprint available that does this.