Skip to content
HubwiseHome

Bathroom fan humidity sensor switch: types, sizing, wiring

GuideUpdated By the Hubwise Home team

A humidity-sensing fan or wall switch turns the bathroom fan on when the air gets damp and off when it dries. Learn the types, the cfm you need and when to hire an electrician.

As an Amazon Associate we earn from qualifying purchases. Product links on this page are affiliate links: buying through them costs you nothing extra and does not change what we recommend.

Govee H5179 Wi-Fi thermometer hygrometer product photo
Our pick for this page

Govee H5179 Wi-Fi thermometer hygrometer

Best for: Vacation homes, garages and basements where pipes could freeze.

  • No hub needed
  • Freeze and heat alerts for a cabin, garage or crawlspace
  • Needs Wi-Fi at the location
  • Battery powered: check batteries before winter

Name, photo and listed features checked on Amazon.com on November 14, 2026. We have not tested it; see how we choose.

Why a humidity-controlled fan is worth considering

Moisture is the real problem in a bathroom. The EPA recommends running the bathroom fan or opening a window when showering, and keeping indoor relative humidity below 60%, ideally between 30% and 50%. A fan that people forget to turn on, or turn off too soon, leaves damp air to condense on walls and ceilings, which feeds mold and peels paint. A humidity-sensing control removes the need to remember. The Home Ventilating Institute (HVI) suggests running the fan for about 20 minutes after bathroom use, and recommends a timer for that.

Three ways to get automatic control

OptionHow it worksInstall
Fan with built-in humidity sensorThe sensor sits in the fan housing and turns the fan on and off by itselfReplace the fan: a bigger job, often in the ceiling
Humidity-sensing wall switchReplaces your fan switch and senses the room’s humidityWire into the switch box: line-voltage work
Timer switch (countdown or delay-off)You press it; the fan runs for a set timeWire into the switch box
Smart switch plus a separate humidity sensorAn automation turns the fan on at a humidity level and off after a delayWire the switch; the sensor sits on a shelf or wall

The smart route is flexible: you can set the on and off levels, add a minimum run time and get notifications, if your hub or app supports a humidity trigger. It takes some setup. Our general guide to installing a smart switch covers the basic wiring steps, and smart switches without a neutral wire explains a common problem in older boxes.

Step 1: Check the fan before the switch

A better switch cannot fix a weak or blocked fan.

  1. Look for the rating on the fan. Remove the grille. The label shows airflow in cfm and noise in sones.
  2. Compare with the room size. HVI recommends about 1 cfm per square foot of floor area for bathrooms up to 100 sq ft. A 5-by-8-foot bathroom is 40 sq ft. For larger bathrooms, HVI adds 50 cfm for each toilet, shower or tub, and 100 cfm for a jetted tub.
  3. Check where it vents. The duct should go outdoors, not into the attic. Venting moist air into an attic can cause problems.
  4. Check makeup air. HVI notes bathroom doors should be undercut so air can enter; a tight door can choke the fan.
  5. Hold a tissue to the grille. A weak pull suggests a blocked duct or a failing motor.

If the fan is old, loud or undersized, replacing it may help more than a smart control. ENERGY STAR certified ventilation fans use about 48% less energy than standard models, according to ENERGY STAR, and fans with lights use about 70% less; the certification also covers noise and airflow performance.

Step 2: Pick the right switch

  • Load rating. A fan is a motor load. Check that the switch is rated for fans or motors at the fan’s amps (listed on the fan label), not only for lights.
  • Light and fan on one switch. Many bathrooms have a fan and light on the same wire. You may need a dual-function switch with two separate outputs, or a separate switch for each.
  • Neutral wire. Many humidity-sensing and smart switches need a neutral wire in the box. Check before you buy.
  • Sensing range and delay. Look for adjustable humidity threshold and run-on time. A control with no adjustments may not fit your bathroom.
  • Manual override. You should be able to turn the fan on by hand, and the switch should work without Wi-Fi.
  • Hub or app. If you want smart control with Alexa, Google Home, Apple Home or Home Assistant, check that the switch is compatible with your system.

Step 3: Install, or hire help

A fan switch sits in a box in the wall on a 120 V circuit. Turn off power at the breaker, then confirm with a non-contact voltage tester that the wires are dead. If the box has multiple switches or a mix of wires, take a photo before disconnecting. Hire a licensed electrician if you are unsure, if the wiring looks old or damaged, if the box is crowded, or if your local code requires a permit or an inspection. Fans over a tub or shower need to be rated for that location, and the circuit may need ground-fault protection; follow the fan’s manual and local code.

Renters usually cannot replace a hardwired fan or switch. Ask your landlord, and in the meantime run the fan for 20 minutes after showers, open a window and use a battery-powered humidity sensor to see whether the room dries.

Setting the humidity level

A bathroom’s baseline humidity changes with the season. Start with the control’s middle setting, shower, and watch how long the fan runs. If it runs for hours in humid summer weather, raise the threshold or add a maximum run time. If the mirror fogs and the fan has not started, lower the threshold. A fixed run-on time of about 20 minutes, as HVI suggests, is a sensible starting point.

Common mistakes

  • Buying a switch before checking that the fan can move enough air.
  • Using a light-only dimmer or smart switch on a fan motor.
  • Running the duct into the attic or leaving it disconnected.
  • Setting the humidity threshold so low that the fan never stops in summer.
  • Forgetting that a fan and light share a switch.

For other humidity problems, such as a damp basement or a bedroom humidifier, see smart humidity control.

Products that match each need

Replace an old, loud fan

What to look for: ENERGY STAR certification, cfm at least 1 per square foot of floor area, a low sone rating, a built-in humidity sensor option

Govee H5179 Wi-Fi thermometer hygrometer
Govee H5179 Wi-Fi thermometer hygrometerGood: No hub needed. Watch: Needs Wi-Fi at the location.Check price on Amazon

Keep your fan, add automatic control

What to look for: humidity-sensing wall switch rated for fan motors, adjustable threshold and run-on time, neutral wire requirement stated

Leviton DHS05 humidity sensor fan switch
Leviton DHS05 humidity sensor fan switchGood: Runs the fan when it is needed, not when someone remembers. Watch: Rated for fans up to ¼ HP.Check price on Amazon

Simple timer for a shared fan and light

What to look for: countdown or delay-off timer rated for fan motors, 10 to 60 minute options, manual override

Smart home automation

What to look for: smart switch for fan motors, separate temperature and humidity sensor, local control through your hub

SONOFF SNZB-02P Zigbee temperature and humidity sensor
SONOFF SNZB-02P Zigbee temperature and humidity sensorGood: Inexpensive room readings for automations. Watch: Needs a Zigbee hub or coordinator.Check price on Amazon

Frequently asked questions

How long should a bathroom fan run after a shower?

The Home Ventilating Institute suggests about 20 minutes after bathroom use. A timer or humidity-sensing control makes that automatic.

Can I put a humidity sensor switch on any bathroom fan?

Usually yes, if the switch is rated for fan motors at the fan’s amperage. Check the fan label, the switch box for a neutral wire and whether the light and fan share one switch.

What size bathroom fan do I need?

The Home Ventilating Institute recommends about 1 cfm per square foot for bathrooms up to 100 sq ft. For larger bathrooms it adds airflow for each toilet, shower or tub. Check your local code as well.

Do I need an electrician to install a humidity fan switch?

Not always, but it is work on 120 V wiring. Turn off the breaker and test the wires first, and hire a licensed electrician if you are unsure or local code requires it.

Sources

  1. Home Ventilating Institute — Bathroom ventilation guidelines
  2. Home Ventilating Institute — How much ventilation do I need?
  3. ENERGY STAR — Ventilation fans
  4. U.S. EPA — A brief guide to mold, moisture and your home
  5. Amazon.com listing: Govee WiFi Thermometer Hygrometer H5179 with App Notification Alert (ASIN B0872ZWV8X), checked November 14, 2026
  6. Amazon.com listing: Leviton Humidity Sensor Switch for Exhaust Fans, ¼ HP, DHS05-1LW, White (ASIN B0BG6243G7), checked November 14, 2026
  7. Amazon.com listing: SONOFF SNZB-02P Zigbee Indoor Temperature Humidity Sensor (ASIN B0CLR7V3W7), checked November 14, 2026

Product names, photos and listed features were checked on the Amazon.com product pages on November 14, 2026. Prices and availability change; the retailer page is always the reference.

Related pages