
01 / Loose wires
A sensor on the end of a cable
The first version was an ESP32-C3 and a temperature / humidity sensor joined by jumper leads. Small enough to get a reading, with everything still out in the open.
1 / 5Hardware + software · ongoing
Homemade CO₂, temperature and humidity sensors report through AWS IoT Core to a room-by-room dashboard of the house. A Bluetooth bridge sets an electric radiator, and a change only shows as applied once the radiator confirms it.
Notes updated
The 3D view needs WebGL, which this browser could not start. The design and 3D printing page shows the same model as drawing sheets.
Drag to explore · scroll after clicking to zoom · dimensions reconstructed from photos
See the design and 3D printing pageIn short
ESP32-C3 boards read CO₂, temperature and humidity and publish them over MQTT with mutual TLS to AWS IoT Core. A Lambda validates each message, DynamoDB keeps it, and a React dashboard puts it back on the two floors of the house. Settings travel the same path in reverse, and a change only counts as applied once the device reports it back.
MTS-3 · the air-sensor build

01 / Loose wires
The first version was an ESP32-C3 and a temperature / humidity sensor joined by jumper leads. Small enough to get a reading, with everything still out in the open.
1 / 5
02 / One board
The controller, CO₂ sensor and temperature / humidity board came together on a soldered carrier. The blue printed shell was the first case.
2 / 5
03 / Round display
The round screen sits above the electronics. Headers, short jumpers and the display tab make the stack much tighter than the first wired prototype.
3 / 5
04 / Print & fit
Different lids, display seats and case walls were printed and tried against the real board. These blue and yellow parts show the fit changing along the way.
4 / 5
05 / White enclosure
The same compact stack, inside a rounded white enclosure. The circular display brings CO₂, temperature and humidity together on the front.
5 / 5Still experimenting: the small blower and airflow tests are another branch of the build.
14 – 29 November 2026 · latest
The electricity meter flashes an amber light 1,000 times per kilowatt-hour. A light sensor and an ESP32-C3 in a black 3D-printed box now count those flashes, and the house’s energy and power reach my dashboard every minute. Getting there took a resistor swap, a new way of counting, and a test strip printed to find the size of one raised nub.
The idea
Started 14 November 2026 (PR 36). The first part is in Autumn 2026
My electricity supplier has no API for my own usage, and the network operator’s download page sits behind a CAPTCHA. The meter itself, a Kamstrup OMNIPOWER, has a slit marked 1000 imp/kWh that flashes once for every watt-hour.
energy = start reading + flashes ÷ 1,000 kWh
power = 3,600 ÷ seconds between flashes W
A flash every 3.6 seconds is 1 kW. With the kettle on, the slit flashes more than once a second.
Each flash is the meter’s own measurement, so the total tracks the meter exactly, as long as no flash is missed or counted twice.
On the bench · 27–28 November
Probe sketch and the module change merged 29 November (PR 47)
The LM393 light module switched cleanly for a torch and not at all for the meter. Its analog output sat flat at 2,944 mV, the top of the ESP32-C3’s range. The photodiode hung off a 10 kΩ resistor, so a light as dim as the meter’s moved the output by a few millivolts.
Bench test · 28 November
At the meter the comparator output didn’t switch, and the firmware threw away 546 edges as bounce. A probe sketch that served the analog reading to a live web page showed why: a flat line at the ceiling.
Schematic · 28 November
The module came without a schematic. Waveshare’s flame-sensor board matched it: the second “103” from the left is the photodiode’s load. The other one is the comparator’s pull-up, so it stayed.
At the meter · 28 November, 19:18
Shielded, the output rested at 2.94 V and fell to about 0.05 V for 190 ms on every flash: 0.7 flashes a second, roughly 2.5 kW. The module’s own LEDs lit its photodiode at this gain, so they were covered, then removed.


The digital output never switched after the change, because its trimmer was set for the old resistor. Counting moved to the analog pin, and into software.
Firmware · 29 November
Merged 29 November (PR 47), with compile-time tests of the detector
A task reads the analog pin about once a millisecond. It runs above the main loop, so it keeps counting while the board is busy with TLS, MQTT or a dropped Wi-Fi connection. It follows the resting level itself, so there is no trimmer to set. Try it below: the detector is the firmware’s own, ported line for line.
A simulation, not live data. The trace is built from the levels measured at the meter on 28 November; “Let room light in” uses the unshielded level. Copper dots are counted flashes, purple ones rejected.
The count lives in RTC memory, so a crash or a reboot for an update keeps it. It is saved to flash every 15 minutes and before every firmware download, so a power cut loses at most 15 minutes of flashes. Energy is the start reading plus the count, so re-aligning with the meter means changing one number.
On the 3D printer · 14–29 November
Final box merged 29 November (PRs 50 and 52)
The first holder was a disc to tape over the slit, and taping it on was awkward. Bending the photodiode 90° let both boards lie flat against the meter instead of sticking out from it. That became one box, 22 × 63 × 20 mm, located by a raised nub that sits under the meter’s slits.

The box with its lid off: the module at the top, its photodiode in a tube over the kWh slit, and the SuperMini below with its USB-C at the bottom wall. Render.
The printed parts, drawn from the same STL files I printed. Drag to turn them. The meter face is a simplified sketch.
Holder v1 · 14 November
Sized from photos, with the display about 11 mm above the LED. Taping a disc over a slit 1.2 mm high turned out to be awkward.
Holder v2 · 27 November
30 × 24 mm with ribs, side wedges and a wire-tie tail, lined up by sighting down the empty bore. Never printed: the area around the LED hadn’t been measured, and the foot might have covered a button.
Concepts · 28 November
With the diode bent, the boards can lie against the meter. Two layouts: Stack, both boards in one box, and Split, a sensor box with the SuperMini beside it. Stack was cleaner.
Fit coupon · 29 November
Sized from ruler photos, ±0.5 mm. The diode fitted, but the nub stood more than twice as proud as the coupon’s 1.2 mm pocket allowed.
Key test · 29 November
Four nub pockets, 0.10 to 0.40 mm oversize, each with its own window, and four depth gauges. Printed in about 15 minutes. The 0.20 mm pocket fitted with the slit centred in its window.
Box · 29 November
The first box, at 0.20 mm, was a touch tight and its lid had nothing to hold it. The pocket went to 0.25 mm, the lid got click-in ridges, and the back a recess for a Command strip.









Live · 29 November
Fitted on the evening of 29 November 2026; dashboard view merged the same evening (PR 51)
The box went on the meter on a Command strip, with black tape over it for now. It reports as EM-1 over the same UDMI and AWS IoT path as the room sensors. The dashboard has an Electricity card on its home screen and a page for the meter.

| Point | Units | Value |
|---|---|---|
energy_accumulator | kWh | The meter’s import register (1.8.0), to 1 Wh |
power_sensor | W | From the gap between the last two flashes. When the next flash is overdue, the wait itself caps the figure, so it falls towards zero when the house goes quiet. |
To line the count up with the meter, I timed the display ticking over to 40,914 kWh and pushed one new start figure, 40,912.36 kWh, to the board as a remote update. The count carried on, so no flash was lost. kWh per day is each day’s highest reading minus the day before’s.
18 – 21 November 2026
The dashboard now opens on the house and fits a phone. Two gateways brought in sensors that have no connection of their own, a light bulb and a second radiator. And one case stopped being a box and became a small white object called Louvre.
Dashboard pictures come from the dashboard’s demo mode. The readings in them are made up, not the house’s.
Dashboard
Merged to main on 21 November 2026 (PRs 28, 30, 38)
The first screen used to be a list of room cards. Now it is one sentence about the house, the house itself in 3D, then the controls you reach for most. It was designed at phone width first, and you go from house to room to device.






Moving a device is now a drag on the plan and a press of Save; it used to mean editing a file and redeploying. The bedroom sensor with the screen keeps only its CO₂ reading, since its screen warms its own thermometer, and the room takes temperature and humidity from the sensor beside it.
New hardware
Merged to main (PRs 24, 29, 31); both gateways running since 21 November 2026
The bathroom has no socket, so its sensor runs on a coin cell and speaks Zigbee. A small board nearby listens for it and passes each reading on over Wi-Fi. The sensor still appears in the cloud as a device of its own, under its own name.
Control
Merged to main (PRs 27, 31); the bulb has taken commands since 21 November 2026
A shop-bought colour bulb in the Sitting Room and the Spare Bedroom’s radiator are now on the home screen, next to the first radiator. The bulb only speaks its maker’s protocol on the local network, so a gateway drives it and reports for it.

The gateway applies each new setting once and reports back, point by point, what the bulb accepted. The dashboard shows a change as applied only after that report, the same rule the first radiator follows.
The board holds a hash of the bulb account’s login, never the password.
On the 3D printer
Third print fits, 20 November 2026; sensor seat redrawn since and not yet reprinted
The brief for the smallest sensor case changed from ‘make it fit’ to ‘make it a small piece of art’. Three concepts came back. The one picked, Louvre, wraps seventeen slats around its front and sides and leaves the sensor in an open cage where you can see it.



Print 1 · 19 November
The design was fine. The slicer had loaded front and back as one object, so a copy of the back plate sat inside the front and filled it in. Fixed with a ready-made print file.
Print 2 · 19 November
The slats over the sensor were cut through the side walls too, so each stood alone as it printed. The cage now opens through the face only, and a new check looks for anything standing by itself.
Print 3 · 20 November
The sensor sat tilted by about 10°, because its leads landed on the ribs under it. The seat now has a trench for the leads and keeps the board visible through the slats. Not yet reprinted.




Housekeeping
Everything below is on main as of 21 November 2026
A review found firmware running on boards, and every hardware design, saved only as working copies on one PC. All of it is now merged, and there is one rule to stop it happening again: nothing is put on a board or in the cloud from code that has not been pushed.
24 October – 17 November 2026
The dashboard was rebuilt around rooms, the boards learned to take signed updates from anywhere, the cloud started keeping hourly and daily summaries, and the desk filled up with small white cases.
Dashboard pictures come from the real dashboard code running on test data. The readings in them are generated, not the house’s.
Dashboard
Merged to main (PRs 10, 11, 18, 19, 21)
The overview now leads with the floor plan. Every device sits where it really is, rooms tint by temperature, humidity or CO₂, and a slider under the plan replays the last day across the whole house.

Dashboard
Merged to main (PR 21)
The radiator has a dial. The filled arc is the measured temperature and the handle is the target. Drag it, and nothing is sent until you confirm. Then the dashboard waits for the radiator itself to say the change is real.



Dashboard
Merged to main (PR 18): 6,733 lines added across 66 files
Adding a device used to mean editing several files by hand and keeping them in step. Now there is a Commissioning Studio: pick the hardware, click the floor plan where it sits, run the commands it writes for you, and watch for the first reading.
Firmware
Merged to main (PR 15) and running on three of the five boards
The boards could already be updated over the home Wi-Fi. That stops working the moment you are not at home. So updates now travel through the cloud, and a board installs nothing it cannot prove was signed for it.
An experiment
Dashboard change merged (PRs 12, 13, 19); the cover-off and fan stages are still to analyse
The bedroom sensor has a small round display. It also reported a bedroom nine degrees warmer than it felt. So a second sensor, with no screen, sat beside it for three days.
The dashboard now reads the room's temperature and humidity from the sensor without a screen, keeps the screened one for CO₂, and labels it 'screen warms it' on the room card.
The little round screen
Running on the bedroom sensor since 25 October 2026; merged to main on 21 November (PR 37)
The bedroom sensor's screen is drawn like a page from a notebook. A stick figure lives on the CO₂ number. As the air gets worse the number itself starts to lose the plot: a digit flips, digits swap, the number reads backwards, then drifts off. Cold brings ice. Heat brings flames.
Real CO₂1350 ppm
The screen says3150
Rendered by the firmware’s own drawing code on a PC, not mocked up.


A sensor that went quiet
Tested on a real board on 15 November 2026; merged to main on 21 November (PR 35). The kitchen sensor still needs a USB visit
The kitchen sensor stopped reporting twice while still plugged in, once for 3.7 days and once for 9.4. No other sensor had a gap. Nothing noticed, and nothing restarted it. The firmware now looks after itself in three layers.
On the 3D printer
Printed 15 to 17 November 2026; merged to main on 21 November (PR 32). The story continues with Louvre
Eight sensor cases in three days. The first five kept the board's header pins and ended up the size of a matchbox. Then the pins and the sensor's carrier board came off, and the case shrank to something closer to a stick of gum.





Next sensor
Firmware and printed holder made on 14 November 2026; merged to main on 21 November (PR 36). Fitted on 29 November: how it went
My electricity supplier offers no way to fetch my own usage automatically. But the meter has a small light that flashes once for every watt-hour. Count the flashes and you have the energy. Time the gap between two and you have the power.
Proof it works
Run on main at 52950d7
All four test suites were run again while putting this page together, on 17 November 2026. Every test passed.
This started as a way of seeing temperature and humidity around a house. It grew into a private building view where each room can show its sensor readings, history, device state, and, where it makes sense, controls.
ESP32-C3 devices publish structured messages through AWS IoT. Serverless services validate and store the readings, while a React dashboard puts them back onto the two floors of the house. The same path carries configuration in the other direction.
The first version paired an ESP32-C3 with an SHTC3 for temperature and humidity. I later added an SCD40 CO₂ sensor on the same I²C bus and carried the new reading through the firmware, device metadata, cloud services, history charts, and room view.
The deployed device reports temperature, humidity, and CO₂ using the point names and units expected by the rest of the platform. The board is still deliberately homemade: protoboard, short wiring runs, and a printed enclosure that can be opened again.


The white enclosure is the current setup. Blue prints record the earlier fit checks and blower experiments.





















I measured the assembled board before drawing the enclosure, then printed and adjusted the shell until the sensor openings, lid, and USB-C access all worked with the hardware that was actually on the bench.


The current build has a white printed enclosure and a 1.28-inch round display showing CO₂, temperature and humidity. The screen sits above the hand-soldered perfboard, with USB-C power entering on the right. The model at the top follows this setup from the September photos; its dimensions are approximate. The enclosure page keeps the earlier Slab, Gauge and Halo studies alongside the current build.
A separate ESP32-C3 acts as a Bluetooth bridge for a Terma MOA Blue electric radiator. I used a small probe program to work out how the real controls behaved, then turned that into a bridge between cloud configuration and the radiator’s BLE characteristics.
Requested temperatures are range-checked, written to the radiator, read back, and then reported to the platform. The web interface waits for that device response before it calls a change applied. Two radiators now run through that complete path: the first, and the Spare Bedroom’s, added in November.
The sensor, cloud, dashboard and first radiator-control paths all run on the real system. I’m still changing the hardware packaging and the day-to-day running of it.