Humidity-controlled bathroom fan

Starts the fan when the humidity rises faster than normal and stops it when the room returns to its usual level, learning the baseline by itself.

Climate & heating Board: ESP32-C3 SuperMini Level: ●●○ ⏱ 2–3 h

⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Let the shower decide, not a timer

A fixed timer runs too long in summer and too short in winter. Humidity itself is a better trigger, but the absolute level depends on the weather. A controller that learns the usual baseline over the last day and starts the fan when the humidity rises quickly above it, and stops when it returns close to it, adapts to the seasons on its own.

Details

Use the rate of rise as well as the level, so a damp day does not leave the fan running forever, and set a maximum runtime. Do not start the fan at night unless the humidity really jumps. A BME280 in the bathroom, a relay in the fan’s line in a closed junction box, and a fuse are all you need. Check whether the fan has its own timer or a mains-voltage control wire first.

  • Mould grows on surfaces that stay damp for days; a log shows whether the room dries.
  • Keep the sensor away from the shower spray.

Components

  • ESP32-C3 SuperMini
  • BME280 I2C module (3.3V)
  • Relay module 1-channel 5V (opto-isolated)
  • Inline fuse holder + fuses
  • Plastic project enclosure
  • Lever connectors (WAGO type) 2/3-pin

What you need

Buy the parts kit · Estimated total: $14.00

ESP32-C3 SuperMini × 1
$2.50
Buy at AliExpress Buy at Amazon.com
BME280 I2C module (3.3V) × 1
$3.00
Buy at AliExpress Buy at Amazon.com
Relay module 1-channel 5V (opto-isolated) × 1
$1.50
Buy at AliExpress Buy at Amazon.com
Inline fuse holder + fuses × 1
$1.50
Buy at AliExpress Buy at Amazon.com
Plastic project enclosure × 1
$3.00
Buy at AliExpress Buy at Amazon.com
Lever connectors (WAGO type) 2/3-pin × 1
$2.50
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Ukraine: we buy and sell these parts ourselves, order them on this site.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Cellar or basement dehumidifier controller

Switches a dehumidifier or a fan by humidity with hysteresis and a dew-point safeguard, and logs the climate of the room.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Pipe freeze guard with heating cable

Watches the temperature of an unheated pipe, switches a heating cable and warns you when the cable cannot work because the power is out.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit
⚠ Caution

Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.

Solar-powered weather node

A small outdoor station on a Li-ion cell and a solar panel that reports temperature, humidity and pressure trend every few minutes.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit

← All module ideas →

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.