Skip to the notes
robocupjunior.org.nz

Junior Robotics Notes

an independent NZ guide to classroom robotics

N-11Programming

A home weather station project

Measure temperature and humidity indoors and out, and use the data to understand damp, condensation and why winter windows drip.

A home weather station is one of the most rewarding first electronics projects. It runs for weeks, it produces real data, and the data answers questions families actually care about: How cold does the bedroom get overnight? Why are the windows wet every winter morning? Is the house drier after the heater has been on?

This note describes a simple station built around a micro:bit or Arduino-style board and an inexpensive temperature and humidity sensor.

What to measure

  • Temperature. The micro:bit has a built-in temperature sensor in its processor, which is good enough to start. A separate sensor gives more accurate readings.
  • Relative humidity. How much water vapour the air holds compared with the most it could hold at that temperature. Common hobby sensors measure temperature and humidity together.
  • Air pressure (optional). Some sensor modules add a barometer, which lets you watch weather systems arrive.

Why humidity and temperature belong together

Warm air can hold more water vapour than cold air. When moist indoor air touches a cold surface, such as a single-glazed window on a winter night, it cools, and once it drops below its dew point the extra water condenses as droplets. That is the "dripping window" many New Zealand households know well.

Logging indoor temperature and humidity side by side lets students see this happen: humidity climbing in a closed bedroom overnight, temperature falling, and condensation appearing by morning. It also shows how opening a window for a short time, using extractor fans, or heating the room changes the numbers.

Overnight, room temperature falls while humidity rises toward condensation temperature humidity evening morning windows fog up
Fig. 1: an illustrative overnight pattern in a closed, unheated bedroom (shape only, not real data).

Building the station

  1. Start indoors. Read the sensor every minute and display the values. Check them against a household thermometer.
  2. Log to memory. The micro:bit can record data to its own storage, and Arduino boards can write to an SD card module or send data to a computer.
  3. Record for a week. Put the station in a bedroom and note when windows are opened, heaters are used or showers are taken.
  4. Graph and discuss. Look for patterns. When is humidity highest? What happens after a shower? After cooking?
  5. Add an outdoor sensor. Shelter it from direct sun and rain, for example under eaves inside a vented box, or readings will be misleading.

Connecting to the real world

New Zealand rental homes must meet healthy homes standards covering heating, insulation, ventilation, moisture ingress and drainage, and draught stopping. A student project doesn't measure compliance, but it does help families understand why ventilation and heating matter, and what their own house is doing.

For outdoor readings, compare your numbers with official observations and forecasts from MetService and climate information from NIWA. Expect differences: your garden is not an official weather station, and that is a good discussion point about sensor placement and accuracy.

Common gotchas

  • Sun on the sensor can add several degrees. Always shade outdoor sensors.
  • The board heats itself. Keep the sensor a little away from the board and its regulator.
  • Cheap humidity sensors drift. Compare two side by side and treat readings as approximate.

The best outcome is not a perfect gadget but a household that knows a bit more about its own air. That's real science, done at home.

Turning readings into a report

Data is only interesting when someone looks at it. At the end of the logging week, ask students to write a one-page "house air report" with three parts: what was measured and where, what the graphs show, and one change the household could try. A good report might say that the bedroom humidity peaked after showers, and suggest running the bathroom fan for longer or opening a window for ten minutes in the morning.

Then try the change and measure again. This before-and-after approach is how real building scientists work, and it gives students a genuine reason to care about accuracy. If the "after" week was much warmer outside, the comparison is unfair, and recognising that is an important lesson in itself.

Sharing data safely

Some students will want to put their weather station online. Before publishing anything, think about what the data reveals. Indoor readings can show when a house is empty, for example. Outdoor temperature, humidity and pressure are generally harmless to share, but it's sensible to leave out the exact address and to check with an adult before connecting any device to the internet.

A school can also run several stations at once in different classrooms or at students' homes and compare them, which turns a single project into a small network of sensors.

Sources: Tenancy Services: healthy homes standards; MetService: weather and climate explained; NIWA climate and weather.