Expanding piHouse: Adding Outdoor and Bedroom Temperature Sensors
In the latest iteration of my piHouse home‑automation project, I installed two additional DS18B20 temperature sensors: an outdoor unit that I had previously programmed but never deployed, and a new sensor in the bedroom. The upgrade required careful hardware planning, a new cable run through the house and outside, and then duplicating the existing sensor‑reading script.
Pulling the cable and soldering the connections were the most time‑consuming parts of the project. I also faced challenges positioning the outdoor sensor—direct sunlight was affecting the accuracy, so I am experimenting with shaded placements and protective housings.
Below are key highlights and a quick reference for the commands I use on the Raspberry Pi to retrieve sensor data. The full post, complete with diagrams and code snippets, is available here.
When testing the new hardware, I read the sensor output directly from the 1‑Wire filesystem with the following command:
pi@raspberrypi:~ $ cat /sys/bus/w1/devices/28-00000512f401/w1_slave 2>&1
This outputs the raw temperature reading and error status, which I then parse in my monitoring script.
Manufacturing process
- Build a Raspberry Pi Home Temperature Monitor with MCP9808, InfluxDB & Grafana
- Emotion Sensor & EEG: Low-Cost Hardware for Real-Time Emotion Detection
- UnifiedWater v1 – Complete Arduino Water Quality Sensor Kit
- River Health Monitor: Arduino-Based Water Quality System
- Build a Smart Wristband with Arduino MKR GSM 1400 & Hologram IoT
- Smart Hydroponic System Using Arduino Mega 2560 & Sensors
- Master Vibration Detection with Arduino: A Simple Sensor & LED Setup
- MKR1000 with DHT22: Real‑Time Temperature & Humidity Monitoring to Azure
- Arduino Temperature Sensor Project: Read, Convert, and Display Fahrenheit
- Portable Arduino-Based Temperature & Humidity Monitor with 16x2 LCD Display