ESPHome & Maker · Builds

Build a Room Multisensor with ESPHome

Nearly every good automation is secretly a sensor project: lights that respond to actual darkness, heating that follows the room people sit in, a house that knows which rooms are occupied. The room multisensor — temperature, humidity, light level, and motion on one small board — is the standard unit of that layer, and ESPHome makes it an evening’s build. This guide covers the parts, the wiring, the YAML, and the calibration discipline that separates a sensor network from a box of plausible numbers. It sits alongside the bench’s dedicated presence and air-quality builds.

Published Nov 21, 2026

The parts list

The core is any ESP32 board from the getting-started guide — a dev board or a compact D1-mini-format ESP32. Onto it: a BME280 (temperature, humidity, pressure over I2C — a few dollars) or the simpler DHT22 if the board box already holds one; a BH1750 light sensor (also I2C, reports real lux, a few dollars); and a PIR motion sensor (the HC-SR501 class, or its smaller AM312 sibling for compact builds). Total parts cost lands around $15–25 per room at US retail, less from the slow boat. The design choices that matter: put both I2C sensors on the same bus (they coexist happily at different addresses), power the PIR from the board’s 5 V or 3.3 V rail per its datasheet, and plan the enclosure before the wiring — a ventilated small case with the PIR’s dome exposed and the temperature sensor away from the ESP32’s own warmth.

The build and the YAML

Wiring is four I2C lines shared between the two sensors (SDA, SCL, power, ground), one GPIO for the PIR’s output, and patience with jumper leads. The YAML generator produces the skeleton — board, encrypted API, OTA, I2C bus, BME280 — and the additions are a BH1750 sensor block on the same bus and a binary_sensor on the PIR’s pin with a delayed-off filter so “motion” lingers a few minutes instead of flickering. Flash it, adopt it in Home Assistant, and the room gains four entities. Placement decides the data quality: chest-to-ceiling height on an interior wall, out of direct sun and away from radiators, exterior doors, and the television’s heat plume. A sensor above a radiator is a radiator monitor, whatever its name says.

Calibration, stated plainly

Two corrections separate a trustworthy build from a decorative one. Heat offset: the ESP32 warms its own board, and a BME280 mounted tight against it reads 1–3 °C high — mount the sensor on short leads away from the chip, or apply a measured offset filter in the YAML after comparing against a reference thermometer in the same spot for an hour. Humidity skepticism: the BME280’s humidity is good for trends and room comparisons, less authoritative as an absolute — the air-quality guide covers the deeper sensor caveats, including the BME680’s calculated-index trap. Light levels need no calibration for automation purposes: lux is lux, and “below 30 lux at the sofa” is a threshold you set by sitting in the room, not from a table. Name the entities by room and quantity (sensor.living_room_temperature) per the site’s naming discipline, and the automations write themselves.

What it unlocks

With a multisensor per main room, the house gains its working senses: lighting that keys on measured darkness plus motion rather than the clock, heating and cooling decisions based on the occupied room instead of the hallway thermostat, humidity alerts for the bathroom fan, and the activity signals the check-in patterns are built from. It is also the natural first second project on the bench — after the first blinking board, before the ambitious builds — because every room completed makes the whole system smarter. The maker bench hub has the full project ladder.

Official documentation and references

Frequently asked questions

What does a room multisensor cost to build?

Around $15–25 per room at US retail: an ESP32 board, a BME280 (temperature/humidity/pressure), a BH1750 lux sensor, and a PIR, plus a small case. Less from overseas sellers, at the usual shipping-time trade.

Why does my temperature read high?

The ESP32 warms its own board — a sensor mounted tight against it commonly reads 1–3 °C high. Mount the BME280 on short leads away from the chip, or measure the offset against a reference thermometer and apply it as a YAML filter.

BME280 or DHT22?

The BME280, when buying new: I2C wiring is cleaner, it adds pressure, and its temperature/humidity quality is better. A DHT22 you already own is fine for a first build.

Where should the sensor be placed?

Interior wall, chest-to-ceiling height, out of direct sun and away from radiators, exterior doors, and electronics heat. Placement decides data quality more than sensor choice does.

Related guides