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.

XIAO ESP32-C3MC-38D1GND
USB-C at the top: connect the contact to D1 (GPIO3, second left pad) and GND (second right pad). The board SVG comes from the controller Web Portal. Verify the printed labels on your actual board.
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.

Buy the door contact on AliExpress

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.

24 GHz mmWave Human Presence Sensor for XIAO
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 & tutorials
Buy at Seeed Studio

Affiliate 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.

XIAO Logger HAT
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 & documentation
Buy at Seeed Studio

Affiliate 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.

L76K GNSS Module for XIAO
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 & tutorials
Buy at Seeed Studio

Affiliate link: we may earn a commission at no extra cost to you.

Seeed Studio coupon codes

XIAO SERIES PROMOTIONC6VBWNP9

Enter 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 ProgramYOIMGNE4
  • Universal ProgramLZ0IPNSS
  • HomeAssistant High Commission CampaignUBW0BD7N
  • XIAO SERIES PROMOTIONC6VBWNP9
  • Solar Node P1 Series for meshtastic/meshcoreUQVSX0QW
  • reTerminal E1001&1002/D1001 Promotion18SPHJ8J
  • Minichord Synthesizer DealHKHT9PZ3
  • SenseCAP Watcher for XiaoZhiUSVZLY0Y
  • SO-ARM101 Pro DealLL1WM8LR
  • LeKiwi Kit Mobile Base DealRZ9IB554
  • reComputer J4012 Jetson PromoTZGPKGGM
  • reTerminal E1003&1004/Sticky/OpenDisplay Promotion9ME9VUEY
  • Amazing Hands Promo87T9L97Y
  • reSpeaker Flex XVF3800 PromoE7QTM5CA
  • Limited-time Home Assistant Green Deal7ER8XNOU
  • CodeCraft Pro/Max Coding Assistant PromoAD7U426O
  • reBot Arm B601-DM&RS DealM1OYP97Z
  • SenseCAP MeshTracker X1 Deal6MG4LFEG
  • SenseCraft Robotics Credit Packs DealDJXUX2JD
  • reComputer RK3576&RK3588 DealQJOXQX0O