Place your ESPectre sensor
Distance, antenna orientation, obstacles, and a repeatable room test for finding a placement that detects movement without chasing noise.
Think of a radio link, not a detection cone
ESPectre does not watch a circular area around the board. The access point sends Wi-Fi packets to the ESP32 over a direct path and many reflections from walls, furniture, and people. Motion is easiest to distinguish when it changes several of those paths, so the access point, the sensor, and the route people take through the room all matter.
A good starting placement
- Put the ESP32 in the room or area you want to monitor, with the access point roughly 3–8 m away when the layout allows it.
- Choose a position where normal movement crosses the space between the access point and the sensor, rather than staying entirely behind one endpoint.
- Keep the antenna end of the board exposed to the room, clear of metal, dense electronics, and large obstacles.
- Mount it on a stable surface. A board or cable that swings, vibrates, or is moved during cleaning changes the channel by itself.
- Give the sensor steady packet traffic, and judge placement before changing detector parameters.
Distance: use RSSI as the final check
Metres are only a starting point: walls, access-point power, antennas, and furniture change the link. When your frontend exposes Wi-Fi RSSI, use it to confirm the result. ESPHome publishes a diagnostic WiFi RSSI sensor, and Monitor displays the value in Diagnostics.
| Observed RSSI | What it suggests | What to do |
|---|---|---|
Above -40 dBm | The receiver may be too close to the access point. | Move the sensor farther away before raising thresholds. |
-40 to -70 dBm | Good CSI headroom for a first installation. | Run the quiet-and-motion test below. |
-70 to -80 dBm | The link is weaker and placement effects become more important. | Test carefully, and prefer a clearer path if results vary. |
Below -80 dBm | The signal is weak and more noise is likely. | Move the sensor or access point, or remove a heavy obstacle. |
Do not optimize for the strongest possible RSSI. A very short link can be less useful than a moderate, stable link that crosses the occupied part of the room.
Angle and antenna orientation
There is no universal best angle for every ESP32 board and access point. PCB antennas, external whip antennas, enclosures, and nearby materials all change the pattern. Use the following as a controlled starting test:
Start clear and facing the link
Keep the antenna end away from the wall or enclosure and start with the device facing the access point. For an external whip antenna, start with it vertical.
Record one quiet baseline
Keep the room empty and still long enough to see whether the score remains stable.
Walk the real route
Use the doorway, corridor, or path the installation is meant to detect; do not test only by waving a hand next to the board.
Rotate by 90 degrees
Change only the orientation, recalibrate when using Lightweight, and repeat the same walk. Keep the orientation with the clearer separation between quiet and motion.
The comparison matters more than the nominal angle. Avoid making several changes at once, or you will not know which one improved the link.
Room layouts
Single room
- Place the endpoints apart.
- Let common walking routes cross the link.
- Keep the sensor out of cabinets and from behind furniture.
Doorway or corridor
- Put the link across, or diagonally across, the route.
- Test the whole approach, not only the doorway.
- Watch for motion leaking in from adjacent rooms.
One per floor or apartment
- Use one sensor per floor or apartment as a practical starting point.
- Add another when tests reveal blind areas or you need room-level state.
- Label and tune each sensing link independently.
Placements to avoid
- Inside a metal cabinet, behind a television, or pressed against a large metal surface.
- Immediately beside the access point, where the link is strong but spans little useful space.
- At the edge of coverage with intermittent traffic or RSSI below roughly
-80 dBm. - Next to moving fans, curtains in airflow, vibrating appliances, or other motion you do not want to detect.
- In a position where people can easily move the board, antenna, power cable, or access point.
A repeatable ten-minute test
Check the link
Confirm steady packet traffic and, when available, an RSSI in the preferred range.
Establish quiet
With Lightweight, boot or recalibrate with the room still during the startup calibration. Then observe an empty room for one or two minutes; the live threshold may still come down if the opening was noisier than the rest of the session.
Exercise the target area
Walk the routes that should trigger motion, including the farthest and weakest-looking part of the room.
Check unwanted areas
Move in adjacent spaces that should remain ignored, and run any fans or appliances normally present.
Change one thing
Move or rotate the sensor, recalibrate Lightweight, and repeat the same sequence. With High Accuracy, repeat the empty-and-motion comparison after every move even though it does not run the Lightweight startup bootstrap.
Tune only after placement
Once the best physical position is stable, make small threshold or filtering changes if they are still needed.