Log your first MR60BHA2 radar reports over USB
Flash Seeed’s Arduino example, read its three labeled fields, then save a local CSV that keeps arrival time separate from value changes. This build is proposed.
Device profile · Seeed Studio MR60BHA2 Breathing and Heartbeat Kit ↗This is a proposed workflow. Follow the linked official setup, then use the checks below to decide whether it works on your hardware.

Get one reading
Use SKU 114993387, a computer, a USB-C data cable and a stable support. Install the ESP32 board package and Seeed Arduino mmWave library, select XIAO ESP32C6 and upload mmwaveBreath. This replaces the preloaded ESPHome application on the XIAO. Open the serial monitor at 115200 baud and follow Seeed’s sleep installation: mount securely about 1 m above the head of the bed, angle about 45° toward the middle, and keep one consenting still participant’s chest within 1.5 m. Do not use a seated desk or exercise session to judge rate output. Look for separate heart_rate, breath_rate and distance lines. A silent console calls for a cable and port check. Keep any missing field marked missing. Getting started · Official sketch · Restore ESPHome
Save the arrivals
Close the serial monitor so the port is free. On your computer, install pyserial, save this example as radar_log.py and run python radar_log.py COM3 > run.csv, substituting your port (for example /dev/ttyACM0 on Linux). Stop with Ctrl+C. Each row is one labeled report printed by the example. Phase lines are skipped. The timestamps count seconds from opening the port. Start a new file after reconnecting.
import csv
import re
import sys
import time
import serial # Install with python -m pip install pyserial
field = re.compile(rb"(heart_rate|breath_rate|distance): (-?\d+\.\d+)")
last = {}
out = csv.writer(sys.stdout)
out.writerow(["arrival_s", "field", "value", "previous_arrival_s",
"last_value_change_s"])
with serial.Serial(sys.argv[1], 115200, timeout=1) as port:
start = time.monotonic()
try:
while True:
match = field.fullmatch(port.readline().strip())
if match is None:
continue
t = round(time.monotonic() - start, 3)
key = match[1].decode("ascii")
value = float(match[2])
old, prev, changed = last.get(key, (None, "", t))
if value != old:
changed = t
last[key] = (value, t, changed)
out.writerow([t, key, value, prev, changed])
sys.stdout.flush()
except KeyboardInterrupt:
passRead two different clocks
Two rows with the same heart rate can have different arrival times and the same last-change time. A gap between arrivals tells you how long the host went without that type of report. It does not date the radar’s underlying estimate. The official rate sketch does not print explicit presence frames. Add those separately for the departure experiment. Rate frame payloads · Mark departures and missed reports
What it costs
With computer, cable and support already on hand, the first-year incremental Seeed subtotal is US$24.21 from China or Germany, or US$25.19 from the US, checked 18 Nov 2026. Add missing equipment at its actual price. The local logger needs no paid plan or Home Assistant host. Tax, shipping, duties, electricity and labor are excluded. Adjust the budget