r/ArduinoProjects • • Aug 01 '26

Project Discussion Bathroom fan humidity sensor project. What humidity levels should I use?

I am writing the code for an ATTiny85 and SHT41 humidity sensor based exhaust fan controller. Does anyone have recommendations for what humidity level I should use to turn the fan on and off?

Maybe something like turn on at 70% and turn off once the humidity level is has been below 65% for 5 minutes?

Of course I could experiment but I would like to see what others have settled on for similar projects. Or, is this something that is specific to my bathroom and the best way would be to experiment?

2 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/rpmerf Aug 02 '26

Agree that change is better than a specific value. The humidity of the air coming in can change, so it's hard to determine the target.

Might record an average. Set the threshold like 10% above the average. Once it crosses the threshold - turn the fan on and stop adding the current humidity to the average. Once it drops back down below the threshold, turn the fan off and start calculating the average again. The only tuning would be the percentage difference for the threshold.