Sensors
Sensors for door alerts, room presence, environmental measurements and location. Each card explains its wiring and firmware requirements.
MC-38 magnetic door / window sensor
Expansion accessory — not a standalone controller
A passive two-wire magnetic contact and a separate magnet for detecting an open door or window. Choose a version whose contact closes when the magnet is nearby, and verify it before installation.
- Interfaces
- Dry contact · two wires · one digital input and GND
- Power
- No separate power supply; use the controller's internal input pull-up
On XIAO ESP32-C3, connect one wire to D1 (GPIO3) and the other to GND. The wires have no polarity. With INPUT_PULLUP, a closed contact reads LOW and an open contact reads HIGH. Do not connect either wire to 5 V.
Fix the wired contact to the frame and the magnet to the moving door, aligned close enough to switch reliably. In the controller Web Portal choose Add Device > Door Sensor, select D1 and name the sensor. Test both open and closed states.
Use compatible XIAO Cloud firmware and connect the controller to your cloud account for phone alerts. The useful-project guide covers firmware, Wi-Fi setup, registration and notification permissions.
Affiliate link: we may earn a commission at no extra cost to you.
24 GHz mmWave Human Presence Sensor for XIAO
Expansion accessory — not a standalone controller
A 24 GHz FMCW radar for detecting moving or still human presence, including small movements that a typical PIR sensor may miss. Useful for occupancy-aware lighting and room automation.

- Interfaces
- UART reports · GPIO presence output with 3.3 V logic
- Power
- Supply capacity above 200 mA; verify voltage for the exact revision
The radar reports presence rather than identifying a person or capturing images. Sensitivity and distance settings need room-specific calibration; reflections and moving objects can affect results. Vendor tools configure the radar separately from the XIAO Cloud app.
Confirm the module revision, supply voltage and mounting direction before wiring. Test occupied and empty conditions and adjust sensitivity; do not treat this as a certified safety or medical detector.
Requires compatible controller firmware and libraries; the module is not automatically exposed in XIAO Cloud. Installing WLED or ESPHome replaces the controller firmware rather than adding a Cloud feature.
Official Wiki & tutorialsAffiliate link: we may earn a commission at no extra cost to you.
XIAO Logger HAT
Expansion accessory — not a standalone controller
An environmental sensing HAT with SHT40 temperature/humidity, BH1750 ambient light, a PCF8563 real-time clock and switchable battery-voltage measurement. Suitable for periodic environmental measurements.

- Interfaces
- I2C sensors and RTC · battery-voltage divider
- Power
- Powered through XIAO; battery measurement via the documented divider
The RTC supplies timestamps while the sensors supply temperature, humidity and illumination readings. The controller firmware must schedule samples and implement storage or export; the HAT does not provide an automatic cloud logger. Battery voltage is not the same as a calibrated charge percentage.
Use the documented pin map and libraries for SHT40, BH1750 and PCF8563. Keep sensors away from local heat sources, set the RTC and verify battery-divider configuration before measurement.
Requires compatible controller firmware and libraries; the module is not automatically exposed in XIAO Cloud. Installing WLED or ESPHome replaces the controller firmware rather than adding a Cloud feature.
Product details & documentationAffiliate link: we may earn a commission at no extra cost to you.
L76K GNSS Module for XIAO
Expansion accessory — not a standalone controller
A satellite positioning receiver supporting GPS, BeiDou, GLONASS and QZSS. Provides coordinates and timing for outdoor location-aware projects using the included active GNSS antenna.

- Interfaces
- UART · NMEA 0183 position/time messages · 1PPS
- Power
- Typical module current: 41 mA tracking · 360 μA standby
The host parses serial messages and checks whether a valid satellite fix exists before using coordinates. This is a receiver, not a cellular tracker: storing routes or sending locations to a service requires additional firmware and connectivity. Indoor reception and positioning accuracy are not guaranteed.
Connect the antenna with power disconnected, verify mounting direction and UART settings, then test with a clear sky view. Initial acquisition can take time; respect privacy when recording or sharing location data.
Requires compatible controller firmware and libraries; the module is not automatically exposed in XIAO Cloud. Installing WLED or ESPHome replaces the controller firmware rather than adding a Cloud feature.
Official Wiki & tutorialsAffiliate link: we may earn a commission at no extra cost to you.
Seeed Studio coupon codes
C6VBWNP9Enter a code at Seeed checkout. Eligibility, discount and expiry are set by Seeed; these supplied codes have not been validated. Check the final price before paying.
All coupon campaigns (20)
- Lite Program
YOIMGNE4 - Universal Program
LZ0IPNSS - HomeAssistant High Commission Campaign
UBW0BD7N - XIAO SERIES PROMOTION
C6VBWNP9 - Solar Node P1 Series for meshtastic/meshcore
UQVSX0QW - reTerminal E1001&1002/D1001 Promotion
18SPHJ8J - Minichord Synthesizer Deal
HKHT9PZ3 - SenseCAP Watcher for XiaoZhi
USVZLY0Y - SO-ARM101 Pro Deal
LL1WM8LR - LeKiwi Kit Mobile Base Deal
RZ9IB554 - reComputer J4012 Jetson Promo
TZGPKGGM - reTerminal E1003&1004/Sticky/OpenDisplay Promotion
9ME9VUEY - Amazing Hands Promo
87T9L97Y - reSpeaker Flex XVF3800 Promo
E7QTM5CA - Limited-time Home Assistant Green Deal
7ER8XNOU - CodeCraft Pro/Max Coding Assistant Promo
AD7U426O - reBot Arm B601-DM&RS Deal
M1OYP97Z - SenseCAP MeshTracker X1 Deal
6MG4LFEG - SenseCraft Robotics Credit Packs Deal
DJXUX2JD - reComputer RK3576&RK3588 Deal
QJOXQX0O