Turn on the bathroom fan when a shower starts

Turn the bathroom fan on when the shower light goes on or humidity rises, and turn it off once the bathroom has stayed dry for a while.

Best for: A bathroom fan on a smart switch and either a shower light or a humidity sensor that can trigger it reliably.

Not for: A shared circuit where the fan cannot be switched independently of the light, or overnight hours unless the household wants ventilation running while sleeping.

Why this exists

A fan that only runs when someone remembers to flip the switch does not help with mirror fog or lingering humidity. Tying the fan to an existing shower signal, whether the light or a humidity reading, removes the need to remember, and turning it off automatically once humidity settles avoids a fan running long after the shower ends.

What I used

Job Good enough Never think about it Notes
Detect bathroom motion with humidity, temperature, and light Aeotec TriSensor 8 Zooz ZSE11 800LR Q Sensor Use this for the humidity-based trigger, not for the fastest motion response.
Switch the bathroom fan independently No personally verified recommendation yet No personally verified recommendation yet Confirm any smart switch used here is rated for the fan motor’s load and that the physical wall switch keeps working.

See recommended gear for the job-first checklist. Product links on this page are direct, non-affiliate Amazon links. Product recommendations and any future affiliate relationships are explained in the disclosure.

Logic

IF the shower light turns on OR bathroom humidity rises above the calibrated baseline THEN turn on the bathroom fan IF the shower light has been off for several minutes AND humidity has returned to baseline for the same period THEN turn off the bathroom fan

Setup notes

  1. Choose one primary trigger, either the shower light or a humidity sensor, and treat the other as a backup rather than combining them in a way that confuses troubleshooting.
  2. Record the bathroom’s humidity baseline on a normal day with no shower running.
  3. Set the on-threshold clearly above that baseline so normal humidity swings do not start the fan.
  4. Require the trigger to clear for several minutes before turning the fan off, so a brief pause in the shower does not shut it off early.
  5. Restrict the automation to normal waking hours unless the household wants it running overnight.
  6. Test with an actual shower, not just running the sink, before trusting the thresholds.

Advanced features

Fixed maximum run time

Add a maximum run time, such as 30 minutes, so a stuck sensor or an unusually long humid period cannot leave the fan running indefinitely unnoticed.

Combine light and humidity

Where both are available, use the light as the immediate on-trigger and the humidity reading only to extend the off-delay on longer showers.

Failure modes

Done when

FAQ

Which trigger is more reliable, the light switch or humidity?

A light-based trigger is simpler and more reliable, since the light almost always goes on first. A humidity sensor is more accurate about the shower itself but reacts a little later and needs its own calibration.

Why not just leave the fan on a timer?

A fixed timer either wastes electricity by running too long or shuts off too early on a long shower. Tying the fan to the actual trigger and humidity level fits real use better.

Should the fan run overnight?

Restrict it to normal waking hours unless the household specifically wants ventilation overnight, since a fan running unexpectedly at night can be startling.