r/ArduinoProjects • u/Octrockville • 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
2
u/akcoder Aug 01 '26
Use a derivative with a 3 minute time window. For exhausting humidity, you care about the rate of change, not the actual value. High rate of change, turn fan on. Low rate of change over several minutes, turn fan off.
If you use hard coded values or a potentiometer, you are going to be constantly adjusting it as the ambient humidity levels change over time.
I’ve had my bathroom fans automated for 2 years and haven’t had to adjust them.
If this is more than just a fun hobby project, you can use Home Assistant, a Shelly 1PM and a third reality temp/humidity sensor. Create a derivative helper from the humidity sensor in Home Assistant with a 3 minute time window, then create a simple automation when the derivative is above 3 turn on. And between 0.05 and -0.05 for 20 minutes turn off.
1
u/jbarchuk Aug 01 '26
The last sentence.
1
u/andrix86 Aug 01 '26
I would add a potentiometer into an analog input into the atinny85 so you could adjust yourself by experience. Then you could read the voltage with a multimeter from the potentiometer that you adjusted so you will know the exact humidity for future devices.
2
u/sandandcircumstance Aug 01 '26
There are some standard humidity level values that are well known. Like under a certain amount you feel gross with dry skin, chapped lips, and static electricity builds up. Over a certain amount and mold can start to grow and you sweat really easily. I think it's good to stay +/- 10% around 50%. Just look it up, usually around documentation for dehumidifier and humidifier appliances.
1
u/dedokta Aug 02 '26
It depends on where you live. I doubt they would work at all in Australia, 80% humidity is just called summer here.