Bathroom fan controller

I want to make it detect sudden changes too, and only respond to that, but haven't decided how to fo it yet.

Maybe collect 10 samples every minute, and if last minute was 5% lower than this minute, then start.

My problem right now is that I don't have much to base the percentages on, so it is try and learn as I go. :slight_smile: