A PIR motion sensor notices you walk in, then loses you as soon as you sit still with a book — so the light goes off at the worst possible moment. A 24 GHz mmWave radar module such as the Hi-Link LD2410 picks up a person who is not moving, which is what a room actually needs.

The LD2410 is an FMCW radar, working at 24–24.25 GHz. It splits its field into nine distance gates, each 0.75 m wide, and reports motion and stationary energy for each one — so it can pick up even the millimetre-scale movement of breathing. Detection distance is adjustable from 0.75 to 6 m, with a detection angle of about ±60°.
Paired with an ESP32, it is a straightforward build: ESPHome supports the module directly, so an ESP32 and a few wires are enough to get a presence sensor into Home Assistant. Power it from 5 V (it needs more than 200 mA), the serial lines run at 3.3 V so no level shifter is needed, and the module talks at 256000 baud over UART. The LD2410C is the easiest variant to start with — 16 x 22 mm, pins at standard 2.54 mm pitch, and Bluetooth for setup from a phone.

Wiring takes about half an hour. Tuning takes longer, and it decides whether the sensor ends up useful or annoying — distance gates and sensitivity need setting for the room, not left at defaults.
That combination — a cheap ESP32 as the collector and relay, and a mmWave sensor doing the actual sensing — is a pattern worth watching. The same ESP32 can gather data from several sensors, relay it over Wi-Fi or MQTT, and feed it into a spatial picture of a building: which rooms are occupied, when, and for how long, without a camera anywhere in sight.
Sources:
https://en.soth.pl/guides/how-to-build-an-mmwave-presence-sensor-with-an-ld2410-and-esphome
https://bluegrays.com/en/blog/ld2410-esp32-mmwave-presence-sensor
Comments