How to Automate a Dehumidifier With Humidity Sensors in a UK Home
DIY Electronics
Quick Summary
UK homes often swing between “open a window” weather, laundry-drying humidity, cold wall condensation and summer rooms that feel like a greenhouse with Wi-Fi. A dehumidifier can help, but it works best when it is guided by real humidity readings rather than vibes. This guide shows you how to use simple humidity sensors, sensible thresholds, timers, smart-plug safety checks and room-by-room habits to automate damp control without buying a pile of unnecessary kit. The goal is not to make your home bone-dry. It is to keep relative humidity in a healthy, stable range, reduce condensation risk, protect rooms where mould starts easily, and stop the dehumidifier from running all day like a tiny plastic workhorse with unresolved trauma.
Why This Guide Matters Now
Humidity control is one of those deeply British home problems that does not look exciting until you are wiping windows, smelling musty corners or wondering why laundry has taken three working days to dry. Recent UK community discussions around damp, mould, dehumidifiers and humidity sensors show the same pattern again and again: people buy a dehumidifier, put it somewhere convenient, then guess when to run it. Some run it constantly and worry about electricity. Others run it for an hour and wonder why the room still feels damp. Neither approach is ideal.
The better approach is measurement first. A few well-placed humidity readings tell you which rooms are genuinely damp, when moisture spikes, whether ventilation helps, and whether the dehumidifier is actually changing the air. Once you know that, automation becomes simple. You can switch the dehumidifier on when humidity rises above a threshold, keep it running long enough to pull moisture out of the room, then stop when the room settles. If you already use Home Assistant, SmartThings, Apple Home, Google Home or another automation system, this is a very satisfying little project. If you do not, you can still build a manual version with a basic hygrometer and a repeatable routine.
This is a non-product-led setup guide for beginner-to-intermediate DIY tech enthusiasts in UK homes. It will not pretend a sensor fixes leaks, failed extractor fans, bad insulation or rising damp. It will help you separate normal household moisture from problems that need repair, set useful targets, avoid unsafe smart-plug mistakes, and build an automation that is boring in exactly the right way. Boring home automation is underrated. It just quietly works while the chaos goblin inside the airing cupboard is denied promotion.
First: Know What You Are Trying to Control
Relative humidity is the amount of water vapour in the air compared with what the air could hold at that temperature. Warm air can hold more moisture than cold air, which is why a room can feel different across the day even when you have not changed anything. A cold bedroom wall, window reveal or external corner can reach a dew point where moisture condenses, even if the middle of the room looks acceptable on a sensor.
For many UK homes, a practical target is roughly 40-60% relative humidity most of the time. Occasional spikes above that are normal after showers, cooking, mopping floors or drying laundry. The problem is not a brief spike; the problem is humidity staying high for hours, especially in cold rooms with poor airflow. If a room sits at 65-75% for long stretches, mould risk rises and fabrics can start to feel clammy. If it sits below 35-40% for long periods, some people notice dry eyes, scratchy throats or static. The sweet spot is stable, not aggressively dry.
Temperature matters too. A bedroom at 16°C and 65% humidity behaves differently from a living room at 21°C and 55%. That is why the best sensor setup records both temperature and humidity. You do not need laboratory precision. You need consistent readings that show trends: which rooms spike, which rooms recover, and which rooms never quite dry out. Once you can see the pattern, the fix stops being guesswork with a plug attached.
Step 1: Place Sensors Before You Automate Anything
Start with two or three humidity sensors rather than trying to monitor every room on day one. Put one in the room where damp or condensation is most obvious, one near the dehumidifier's usual location, and one in a “normal” reference room such as the living room. If you dry laundry indoors, include that room. If you have a cold north-facing bedroom, include that room. If the bathroom has no effective extractor fan, include the hallway outside it as well as the bathroom itself if the sensor is rated for that environment.
Avoid bad sensor placement. Do not put a sensor directly on a windowsill, directly above a radiator, behind curtains, beside a kettle, inside a wardrobe, in direct sun, or in the blast from the dehumidifier outlet. Those spots may be interesting, but they will not represent the room. Place sensors at breathing height where air can circulate. A bookshelf, desk or internal wall shelf usually works. Give each sensor a label that makes sense to humans: “back bedroom”, “laundry room”, “hallway”, not “TH-03”, unless you enjoy turning your home into a submarine control panel.
Leave the sensors running for at least three days before building rules. Ideally, watch a full week with normal life happening: showers, cooking, laundry, heating, windows open, windows closed and the dehumidifier used manually. Note the humidity before and after moisture events. How high does it peak? How quickly does it fall? Does opening a window help or make it worse on a damp day? Does the dehumidifier reduce one room but not another? This baseline stops you writing automation for a problem you have not actually measured.
Step 2: Decide Whether One Dehumidifier Can Cover the Area
A portable dehumidifier can only work well if air can reach it. In an open-plan downstairs space, one unit in a central position may make a useful dent. In a closed bedroom, a utility room or a laundry drying area, it may need to be in the same room with the door mostly closed. Expecting one unit in the hallway to solve damp in a cold back bedroom behind a closed door is optimistic. The dehumidifier is not psychic, and sadly it cannot teleport moisture through plasterboard using determination.
Check the dehumidifier's own controls before adding automation. Many units already have a humidistat, laundry mode, timer, target humidity setting or auto-restart after power loss. If the built-in humidistat is reliable enough, you may not need a smart plug at all. You can use external sensors for monitoring and alerts, while the dehumidifier manages itself. That is often the safest and simplest setup.
If the built-in control is crude or the display only shows the humidity near the unit, an external sensor can help you run it based on the room that matters. For example, the dehumidifier may sit in a landing or laundry room, but the trigger could come from the cold bedroom where condensation appears. Just remember that air movement matters. If the target room is closed off, the unit cannot dry it effectively from elsewhere. Open internal doors when appropriate, use the unit in the problem room when needed, and treat automation as a helper rather than a miracle.
Step 3: Check Smart Plug Safety Before Using One
Not every dehumidifier should be controlled by a smart plug. Before you automate mains power, read the dehumidifier manual and check whether it supports power-loss restart. If you unplug it while running, then plug it back in, does it resume safely, stay off, or complain? A smart plug that cuts power to a device with a compressor may not be ideal if the device expects a proper shutdown or has restart-delay rules. Many modern dehumidifiers cope fine, but you should verify rather than assume.
Next, check the load rating of the smart plug. Look at the dehumidifier's wattage and the smart plug's maximum load in amps or watts. Most domestic dehumidifiers are nowhere near the load of a heater, but startup behaviour, continuous running and heat still matter. Use a reputable smart plug rated comfortably above the device's requirements. Do not use a mystery plug from the cable drawer, a damaged plug, a loose adapter, or a smart plug that gets hot in normal use. Smart does not mean magically exempt from electricity's grumpy little laws.
Place the smart plug where it can breathe and be inspected. Do not bury it behind furniture, under laundry, inside a damp cupboard or where the dehumidifier's water tank could spill onto it. Keep cables tidy but not tightly coiled. If the dehumidifier has a continuous drain hose, route the hose so it cannot drip onto plugs or extensions. If anything smells odd, buzzes, discolours, overheats or trips power, stop using the automation and investigate safely. When in doubt, keep the dehumidifier on its own controls and use sensors for reminders only.
Step 4: Set Sensible On and Off Thresholds
The easiest automation mistake is using one threshold for both on and off. For example, “turn on above 60%, turn off below 60%” can make a device chatter on and off around the boundary. Use hysteresis instead: one threshold to start and a lower threshold to stop. A practical starting point is to turn the dehumidifier on when the relevant room stays above 65% for 10-15 minutes, then turn it off when the room falls below 55-58% for 15-30 minutes. Adjust based on your home and comfort.
The delay is important. A shower, kettle, open door or person walking past a sensor can cause a temporary wobble. Waiting 10-15 minutes filters out noise. The off delay matters too, because the humidity can rebound after the unit stops as moisture leaves fabrics, walls and laundry. If the room bounces straight back to 65%, you may need a longer run, better ventilation, warmer surfaces or a closer look at the moisture source.
Use different thresholds for different rooms. A laundry drying room may justify a more aggressive routine: start above 60-62% and run until 50-55% during a defined laundry window. A bedroom may focus on overnight and early morning condensation: run in the evening if humidity is high, then avoid noisy operation while people sleep unless the damp problem is serious. A bathroom hallway may trigger after showers but only if the extractor fan cannot clear the spike. Automation should fit life, not punish everyone because a graph looked untidy at 02:13.
Step 5: Add Time Windows and Maximum Run Times
Thresholds are useful, but time windows make the setup feel considered. You may want the dehumidifier to run after showers, after laundry starts drying, during cheaper electricity periods, or when people are out. You may not want it running during bedtime, video calls, quiet evenings or times when it would annoy pets. Add allowed run windows so the automation helps rather than becomes the noisy flatmate nobody invited.
Also add a maximum run time. For example, if humidity is high and the dehumidifier starts, let it run for at least 30 minutes but no more than two or three hours without another check. If humidity remains high after that, send an alert or leave it off for a short rest before trying again. This prevents a faulty sensor, open window, full tank, blocked filter or damp source from causing endless running. Endless running is sometimes useful for a wet laundry load, but it should be an intentional mode, not a bug wearing a tiny fan noise.
If your electricity tariff has cheaper periods, you can bias drying towards those times, but do not let cost optimisation override damp control completely. A room that stays humid all evening may need attention even outside the cheapest window. The sensible compromise is to run harder during cheap periods and maintain a safe upper limit at other times. For most homes, the main savings come from avoiding unnecessary all-day use and drying rooms more efficiently, not from creating a tariff spreadsheet so intense it starts judging you.
Step 6: Build a Simple Automation Rule
A good first rule is plain English: if the laundry room humidity is above 65% for 15 minutes, and the time is between 8am and 9pm, and the smart plug is safe to use, turn on the dehumidifier. When humidity drops below 55% for 20 minutes, turn it off. If it has run for more than two hours, notify me to check the tank, filter, window and room conditions. That is it. You do not need a 47-condition automation monster. Those always end up eating a weekend and asking for firmware.
In Home Assistant-style systems, use numeric-state triggers with “for” durations, conditions for time windows, and separate automations or choose blocks for on and off behaviour. In simpler smart-home apps, you may be limited to “above threshold” and “below threshold” routines. If so, use a wider gap between on and off thresholds and add schedules where possible. If your app cannot add delays, start conservative and watch for short cycling.
Name the automation clearly, such as “Laundry dehumidifier humidity control”. Add a manual override. There will be times when you want to run the unit regardless of readings: after washing floors, during heavy laundry, after a leak, or when a room just feels wrong. A physical button, app toggle or voice command can set a temporary boost mode for one or two hours. Temporary is the key word. Permanent overrides are how good automations go to die in a dusty corner, next to the spare HDMI cable nobody can identify.
Step 7: Use Alerts for Problems, Not Every Little Change
Humidity graphs move constantly, so do not alert on every threshold crossing. You will train yourself to ignore the system, which defeats the point. Alert only when action is useful. Examples: humidity above 70% for three hours, dehumidifier running but humidity not falling, water tank likely full, sensor battery low, smart plug offline, temperature very low with high humidity, or a room that repeatedly fails to recover after showers.
A particularly useful alert is “running but not improving”. If the dehumidifier has been on for an hour and humidity has barely changed, something needs checking. The window may be open on a damp day, the filter may be clogged, the tank may be full, the unit may be badly positioned, the room may be too cold for efficient operation, or the sensor may be in the wrong place. Automation should notice failure, not just press the same button forever like a cursed office printer.
Keep notifications calm and specific. “Back bedroom humidity has stayed above 70% for 3 hours; check window, heating, airflow and dehumidifier” is useful. “Humidity alert!!!” at midnight is less useful unless you enjoy being haunted by percentages. If you use dashboards, show current humidity, 24-hour high, dehumidifier status and last run time. That is enough for most people to understand what is happening without needing a meteorology degree.
Step 8: Combine Automation With Boring Building Habits
A dehumidifier is not a substitute for fixing the source of moisture. Use extractor fans during and after showers. Put lids on pans. Avoid drying large laundry loads in cold, closed rooms unless the dehumidifier is actively managing the air. Keep trickle vents clear where appropriate. Heat rooms enough that surfaces are less likely to fall below dew point. Move furniture slightly away from cold external walls so air can circulate. Clean mould properly if it appears, and investigate leaks, failed seals, blocked gutters or bridging damp rather than treating symptoms forever.
Ventilation is not always as simple as “open a window”. On a cold dry day, ventilation can help a lot. On a warm damp day, it may bring in air that does not help the room dry. Sensors teach you what actually happens in your home. Open a window for 20 minutes and watch the graph. Does humidity fall, rise or recover quickly? Does temperature crash? Does the bathroom clear faster with the door shut and extractor running? Measurement turns old advice into something you can test.
Also clean the dehumidifier filter regularly. A clogged filter reduces airflow and makes the unit less effective. Empty and wash the tank as instructed, especially if it sits with water in it. Check continuous drain hoses for kinks, leaks and gravity problems. If the unit ices up, struggles in a cold room, smells musty or keeps shutting off, consult the manual. Maintenance is not glamorous, but neither is explaining to a wall that it has become a mushroom nursery.
Example Room Routines
Laundry room: Place the sensor away from the dehumidifier outlet and drying rack. Start the unit when humidity stays above 62-65% for 10 minutes during laundry hours. Stop below 52-55% for 20 minutes or after a set boost period. Keep the door mostly closed if the room is dedicated to drying, but make sure the dehumidifier has clear airflow and the tank is checked.
Cold bedroom: Monitor overnight and early morning readings. If humidity rises above 65% in the evening, run the dehumidifier before bedtime to bring the room down. If condensation appears on windows by morning, look at heating, airflow, window coverings and cold surfaces as well as humidity. Avoid placing the sensor directly on the windowsill, because it will exaggerate local cold-surface behaviour.
Bathroom hallway: Use the extractor fan first. If the hallway humidity remains high after showers, trigger a timed dehumidifier run nearby, but only if the unit is suitable for the location and not exposed to splashes. Bathrooms need proper electrical zones and common sense. Do not put plug-in kit where water and mains power can become unwilling dance partners.
Living room or open-plan space: Use the dehumidifier as a general stabiliser rather than an aggressive dryer. Start only after sustained high humidity, perhaps above 65%, and stop around 55-58%. If readings are usually fine, do not automate unnecessary runs. The best automation is sometimes the one that spends most of its life doing absolutely nothing, like a tiny digital monk.
Troubleshooting: When the Graph Looks Wrong
If humidity never drops, first check the simple things: windows open, doors closed between the unit and the target room, full tank, dirty filter, blocked airflow, poor sensor placement, a very cold room, or a moisture source that has not been addressed. Then compare sensors. Put two sensors side by side for a few hours. If one reads much higher, it may be inaccurate or slow to update. Cheap sensors can drift, so trends matter more than a single perfect number.
If humidity drops quickly but rebounds, moisture may be coming out of fabrics, walls, carpets, laundry or cold surfaces after the air dries. Longer low-power runs may work better than short aggressive bursts. You may also need warmth and airflow, not just extraction. A dehumidifier removes water from air; it does not magically dry the inside of a cold wall in one afternoon. Physics is rude like that.
If the smart plug disconnects, becomes warm, clicks repeatedly or fails to switch reliably, remove it from the setup. Let the dehumidifier's own controls manage operation and use the sensor to remind you instead. If breakers trip, plugs scorch, sockets feel loose, or you suspect wiring issues, stop and call a qualified electrician. DIY tech enthusiasm is excellent. DIY mains heroics are how the void gets paperwork.
A Simple Weekly Humidity Checklist
- Check the 24-hour and 7-day humidity highs for your damp-prone rooms.
- Empty and clean the dehumidifier tank if needed.
- Check the filter and airflow path.
- Look for condensation, musty smells or mould starting behind furniture and curtains.
- Review whether the automation ran for sensible lengths of time.
- Test one habit change, such as a longer extractor run or a different laundry drying location.
- Replace batteries in sensors before they fail at the least convenient moment, because they will.
This little checklist is more useful than constantly fiddling with thresholds. Give the setup a week, review the pattern, then adjust one thing at a time. If you change thresholds, sensor positions, door habits and laundry routines all at once, you will not know what helped. Good home troubleshooting is annoyingly scientific. The house does not care about our feelings, which is inconsiderate but at least consistent.
Final Thoughts
Automating a dehumidifier is one of the most practical DIY tech projects for a UK home because it connects a real household problem to a measurable result. You are not adding gadgets for the sake of it. You are learning how your rooms behave, reducing damp risk, making laundry less miserable and stopping a useful appliance from running blindly. Start with sensors, watch the baseline, choose safe control methods, use sensible thresholds, and add alerts only when they point to action.
The key is restraint. You do not need five dashboards, twelve sensors and a rule engine that looks like it escaped a data centre. You need enough information to run the dehumidifier when it helps and leave it off when it does not. If the readings expose a building issue, treat that as a win too. The sensor has not failed by revealing bad ventilation, a cold bridge, a leak or a useless extractor fan. It has simply stopped the house getting away with lying to you.
Do this well and the result should feel invisible: fewer wet windows, faster drying laundry, fewer musty corners, clearer decisions and a dehumidifier that runs with purpose. That is the best kind of smart home upgrade. Not flashy. Not expensive. Just quietly removing litres of regret from the air.