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.

Climate & heating Board: ESP32 DevKit V1 (WROOM-32) 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.

More ventilation is not always the answer

On a warm humid day, outside air carries a lot of water. When it enters a cool cellar it cools down, reaches its dew point, and leaves its water on the walls. So opening the cellar vent in summer can make the dampness worse. What matters is the dew point, not just the relative humidity.

Control with a reason

Compute the dew point from the BME280 temperature and humidity (the Magnus formula is enough). A simple controller switches a dehumidifier with hysteresis, for example on above 65 % and off below 55 %, and keeps a minimum off time of a few minutes to protect the compressor. A second sensor outside lets you ventilate only when the outdoor dew point is lower than the indoor one by a margin.

  • Sustained humidity above about 60 to 70 % invites mould; the log shows how often that happens.
  • Switch a mains dehumidifier with a relay or a contactor rated for the compressor load, in a closed enclosure with a fuse.
  • Do not point the sensor at the dehumidifier outlet; it will measure the machine, not the room.

Components

  • ESP32 DevKit V1 (30 pin, WROOM-32)
  • 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: $15.50

ESP32 DevKit V1 (30 pin, WROOM-32) × 1
$4.00
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

Other countries: order these parts on AliExpress with the links below.

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.

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.

  • Board ESP32-C3 SuperMini
  • 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
⛔ 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.

Floor heating controller

Controls an electric floor or heater with a solid-state relay, floor and room probes and a schedule.

  • Board ESP32 DevKit V1 (WROOM-32)
  • Level ●●● Advanced
  • Build time 3–5 h
Pick parts / kit

← All module ideas →

Comments

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

Comments are moderated.