Smart Bathroom Ventilation: Automatic start of ceiling fans based on integrated humidity sensors (Humidity Sensors)

When we talk about "Smart Home", our mind usually goes to lights, TV and music. But one of the most useful and practical automations in a home concerns a room that we rarely give technological importance to: the bathroom.

Steam build-up after a hot shower is the number one enemy of buildings. It causes peeling paint on the ceiling, ruins wooden bathroom furniture and creates the perfect habitat for black mold to grow.

As engineers, we often see traditional vents fail to solve the problem. Let's see why the old way of connecting the fan is wrong, and how with a cost of less than €40 we can make a system that "breathes" completely autonomously, protecting your health and your property.

1. The Problem of Classical Ventilation

In most homes (and hotels), the ceiling or wall fan (ventilator) operates in one of two "dumb" ways:

Illustration for 1. The Problem of Classical Ventilation

Connected to the light

Turn on the light, the ventilation turns on. This is extremely annoying. If you go in just to wash your hands or brush your teeth, you have a fan whirring over your head for no reason.

With a time delay (Timer)

Turn off the light and the fan continues to run for 10 minutes. But often, a hot shower in winter leaves so much moisture that 10 minutes is not even enough time to de-fog the mirror.

2. The "Smart" Solution: Decoupling & Sensors

Illustration for 2. The "Smart" Solution: Decoupling & Sensors

In Smart Home, the philosophy is to remove human intervention. The fan should work only when there is a real need (moisture or odors) and for as long as necessary.

What equipment do we need?

  1. The classic fan: You don't need to buy a "smart" or expensive fan. A simple, quiet motor is enough.
  2. A Smart Relay (e.g. Shelly Plus 1): We place it behind the fan switch or high up, next to its motor. This will provide the current.
  3. A Humidity Sensor: A tiny battery device (e.g. Aqara Temperature & Humidity Sensor with Zigbee), which we stick with double-sided tape high up on a bathroom wall, away from direct water splashes.

3. How to set up Automation (The Logic)

Inside our central Hub (SmartThings, Home Assistant, etc.), we create a routine that replaces the switch.

The Simple Scenario (Absolute Limit):

With this simple logic, your mirror will never fog up, and the fan will work exactly as many minutes as it needs to "dry" the space, not a minute more.

The Advanced Scenario (Rate of Change - Derivative): The simple scenario above has a "flaw". What if it's pouring rain outside, you have an open window and the natural humidity of the house is 75% anyway? The fan will run non-stop! In advanced Hubs (like Home Assistant), engineers use "Rate of Change". The algorithm doesn't look at the absolute number, but at the spike.

  • "If the humidity rises by 10% within 3 minutes (which means someone just turned on the hot water), then turn on the fan. Turn it off when the humidity returns to the pre-shower level."
Illustration for 3. How to set up Automation (The Logic)

Trigger

If the humidity in the bathroom exceeds 70%.

Action

Then command the relay to turn on the vent.

Condition

When the humidity drops below 55%, then turn off the ventilation.

4. The "Smart" Tweaks (Why You'll Love It)

Illustration for 4. The "Smart" Tweaks (Why You'll Love It)

With the fan now integrated into your home software, you can add great comfort touches:

Cold Current Avoidance

When you shower in the winter, the fan pulling in the air often creates a cold draft that freezes you. You can set the automation to "DO NOT turn on the vent while the bathroom lights are on." It will "record" the humidity, but it will wait for you to get out of the bathroom and turn off the light, to start its operation in peace!

Night Mode

If someone goes to the toilet at 03:00 in the morning, the noise of the fan can wake up the neighboring bedrooms. You set in the routine: "If the time is between 00:00 and 07:00, the ventilation remains strictly closed, regardless of humidity."

Summarizing

Smart ventilation is the perfect example of how Smart Home is not just "voice commands", but passive functionality. With a small investment in a relay and a sensor, you solve your mold problem for good, protect your health, and never have to flip a switch or hear fans whirring unnecessarily again.

Related Articles

Smart Home, Building Automation (BMS) & Security

Return to category.

Go to category

Preview