I'm looking for a simple or creative way to determine a sharp ramp increase or decrease of humidity from my Oregon Scientific Humidity sensor.
Here's my use case:
1) I have a "Shower Mode" variable that is used to override the motion sensor trigger to turn off the lights in the bathroom when there's no motion. Obviously there's no motion detected because the sensor is not in the shower, so I want the lights to stay on
2) "Shower Mode" is currently triggered to turn ON when humidity in the bathroom exceeds 40.
3) "Shower Mode" turns OFF when humidity dips below 40.
When the shower is on and the door is closed, the humidity is around 77 for me. My kid uses water that isn't as hot, and showers with the door slightly open. If I open the door, the humidity drops to 53 within 5 minutes.
I'd like to use ramp rate detection rather than constant numbers to automate "Shower Mode" since the standard humidity varies at least from season to season. Plus, the humidity when showering differs from person to person.
Is there a creative way to determine a sharp change in humidity? I'm ok with some scripting if needed.