Safety first
This project runs entirely at low voltage, which is the right way to learn. Power it from a small, properly rated supply or from batteries, and never open or modify mains-powered equipment unless you are qualified. If you solder, use eye protection and ventilation. Take care with batteries, since damaged or shorted cells can overheat. The monitor reports conditions only; it is not a substitute for smoke or carbon-monoxide detectors.
Why measure at all
Rooms feel stuffy, dry or clammy for reasons that are hard to judge by feel alone. A small monitor turns that impression into a record. Over days and weeks you can see whether the bedroom dries out at night, whether the bathroom stays damp after showers, or whether a basement stays humid in summer.
Relative humidity, the figure most sensors report, is the amount of water vapor in the air compared with the most the air could hold at that temperature. Because warm air holds more water, the same moisture content gives a lower reading when the room warms up. That is why temperature and humidity are measured together.
What you need
- A microcontroller board that can read digital or low-voltage sensors. If you are choosing one, the overview of microcontroller boards will help.
- A combined temperature and humidity sensor module. Several types exist, and they differ in accuracy and price.
- A small display, or a way to send readings somewhere, such as a home computer or a memory card for logging.
- Wires, a solderless breadboard for testing, and a small project power supply or battery pack.
Choose parts whose data sheets state their accuracy, and read them. Inexpensive humidity sensors are often accurate to a few percentage points at best, and their readings can drift over the years. For comfort tracking that is usually good enough, but do not treat the number as laboratory-grade.
How it goes together
The build has four stages.
- Test on a breadboard. Connect the sensor to power, ground and one data pin. A solderless breadboard lets you change things without soldering. If you are unsure how to read the sensor’s pin layout, a circuit diagram of the module helps.
- Read the data. Write or adapt a small program that asks the sensor for a reading every so often, such as every minute or every few minutes. Sensors need a moment between readings, and asking too often can warm the sensor and skew the result.
- Show or store the result. Print it to a display, log it to storage, or send it over your network. Decide early whether you want history, since a display alone shows only the present.
- Make it permanent. Move the circuit to a more durable form, with a case that lets air reach the sensor.
If the readings look wrong or the board will not respond, circuit troubleshooting is mostly about checking power, ground and the data connection in that order. A multimeter reading of the supply voltage often finds the problem fast. Pins left unconnected can also cause erratic values, which is why floating inputs are worth knowing about.
Where you put it matters
Placement affects the data as much as the sensor does. Avoid:
- Direct sunlight, which heats the sensor above the room temperature.
- Spots next to heaters, radiators, vents, windows or exterior walls.
- Being right beside the board, regulators or a display, which give off small amounts of heat.
- Bathrooms and kitchens, unless damp conditions are exactly what you want to measure, since steam can damage unprotected electronics.
Mounting the sensor a little away from the main board, with some airflow around it, reduces self-heating. Leave the finished monitor in place for a while before trusting it, because the sensor needs time to settle to the room.
Reading the numbers
Indoor relative humidity is often described as comfortable somewhere in the middle range, commonly around 30 to 50 percent, though preferences and recommendations vary by source and by climate. Persistently high readings can encourage condensation and mold on cold surfaces, and very low readings can make air feel dry and irritate some people. Treat those as rough guidelines rather than targets, and look at trends instead of single values.
A useful habit is to compare your monitor with a second one for a day. If they disagree by several points, you know how much to trust the absolute value, and the trends are still meaningful.
What to do with the results
Once you have history, you can act on it. Open a window, run a fan, adjust a humidifier or dehumidifier, or change your heating habits. If you later want automation, a threshold can trigger a notification or switch a plug-in appliance through a device that is rated for the load. Switching mains loads is where a qualified professional or a certified ready-made device is the safer path.
Keep it simple
This build is a good first smart home project because it cannot cause trouble if it misbehaves. Write down your wiring and settings as you go, so that months later you can repair or copy it. Start with one room, and add more monitors only if the first one tells you something you did not already know.