⛔ High riskMains 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
Comments
No comments yet. Share your experience or ask a question.