Component guide · Beginner · 4 min read
Microwave Motion Sensor Modules

HFS-DC06, DFRobot 5.8 GHz, HaiWang XC508, XC509, MD08, MD6, MS03 and M21
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These small radar boards detect movement and switch a digital output high, just like a PIR, but they see through plastic, work in heat and catch smaller movements. The HFS-DC06 and DFRobot boards run from 5 V; the HaiWang XC508 and XC509 accept 6 to 24 V or 12 V. Range and hold time are usually set with a resistor, jumper or knob.
Key specs at a glance
- Frequency
- 5.8 GHz (HFS-DC06, XC508, XC509, DFRobot) or 10.525 GHz (MD08)
- Supply
- 5 V or 6 to 24 V (check the model)
- Range
- About 0.5 to 12 m, adjustable
- Output
- Digital high on motion (TTL or open collector)
- Hold time
- About 2 s to minutes, adjustable
- Coverage
- About 120 to 360 degrees depending on antenna
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1HFS-DC06 5.8GHz Microwave Motion Sensor Module – 5V DC, High-Level Output₹569
Option 2DFRobot 5.8GHz Microwave Radar Motion Sensor Module₹1,379
Option 3HaiWang HW-XC508 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, TTL Output, 12V DC₹509
Option 4HaiWang HW-XC509 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, 6-24V DC₹329
Option 5HaiWang HW-MD08 Microwave Radar Motion Sensor Module – 0.5-8m Range, 10.525GHz₹219
Option 6HaiWang HW-MD6 Microwave Radar Motion Sensor Module, 10m Range₹139
What the 5.8 GHz and 10 GHz microwave motion sensor modules is
Microwave motion sensor modules such as the RCWL-0516 use Doppler radar to detect movement through plastic and thin walls, giving a digital HIGH output on motion.
Microwave sensors are more sensitive than PIR, which is both their strength and their weakness: they also catch moving curtains, fans and people in the next room. Turn the range down to what you need.
They make good triggers for lights, alarms and automatic doors, and they hide inside plastic enclosures because microwaves pass through.
5.8 GHz and 10 GHz microwave motion sensor modules pinout
The pins on the 5.8 GHz and 10 GHz microwave motion sensor modules and what each one does.
| Pin | Function |
|---|---|
| VCC / V+ | Supply |
| GND | Ground |
| OUT | Motion output |
| CDS / LDR | Optional light sensor input (some modules) |
- VCC / V+
- Supply
- GND
- Ground
- OUT
- Motion output
- CDS / LDR
- Optional light sensor input (some modules)
Wiring the 5.8 GHz and 10 GHz microwave motion sensor modules
Check the supply range first; the HaiWang modules need 6 to 24 V or 12 V, and some outputs are open collector, so add a pull-up.
| 5.8 GHz and 10 GHz microwave motion sensor modules pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5 V | 5 V (VIN) or 3.3 V (check module) |
| GND | GND | GND |
| OUT | D2 | GPIO 27 |
- VCC
- Arduino Uno:
- 5 V
- ESP32:
- 5 V (VIN) or 3.3 V (check module)
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- OUT
- Arduino Uno:
- D2
- ESP32:
- GPIO 27
Example code
A minimal sketch to check the part works.
// Motion radar with a digital OUT pin: HIGH while motion is seen (plus the hold time)
const int RADAR = 2; // ESP32: use GPIO 27
const int LED = 13;
void setup() {
pinMode(RADAR, INPUT);
pinMode(LED, OUTPUT);
Serial.begin(115200);
}
void loop() {
bool motion = digitalRead(RADAR);
digitalWrite(LED, motion);
static bool last = false;
if (motion != last) { Serial.println(motion ? "Motion" : "Clear"); last = motion; }
delay(20);
}Setup and tuning
VIN 4 to 28 V, GND, and OUT to a digital pin; OUT is 3.3 V.
detects movement up to about 5 to 7 m.
add the optional resistor or capacitor on the back to reduce range or change hold time.
keep the back clear of metal; mount away from fans and moving objects.
two modules close together may trigger each other.
What you need
Shop this list12 of 13 found in our store · ₹4,209
Generic HFS-DC06 5.8GHz Microwave Motion Sensor Module – 5V DC, High-Level Output: the part this guide coversHFS-DC06 5.8GHz Microwave Motion Sensor Module – 5V DC, High-Level Output₹569
DFRobot 5.8GHz Microwave Radar Motion Sensor Module: another version this guide coversDFRobot 5.8GHz Microwave Radar Motion Sensor Module₹1,379
HaiWang HW-XC508 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, TTL Output, 12V DC: another version this guide coversHaiWang HW-XC508 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, TTL Output, 12V DC₹509
HaiWang HW-XC509 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, 6-24V DC: another version this guide coversHaiWang HW-XC509 Microwave Radar Sensor Module, 0.5m-12m Range, 5.8GHz, 6-24V DC₹329
HaiWang HW-MD08 Microwave Radar Motion Sensor Module – 0.5-8m Range, 10.525GHz: another version this guide coversHaiWang HW-MD08 Microwave Radar Motion Sensor Module – 0.5-8m Range, 10.525GHz₹219
HaiWang HW-MD6 Microwave Radar Motion Sensor Module, 10m Range: another version this guide coversHaiWang HW-MD6 Microwave Radar Motion Sensor Module, 10m Range₹139
HaiWang HW-MS03 Microwave Radar Motion Sensor Module, 10m Range: another version this guide coversHaiWang HW-MS03 Microwave Radar Motion Sensor Module, 10m Range₹229
HaiWang HW-M21-2 Microwave Radar Sensor Module, 10m Range: another version this guide coversHaiWang HW-M21-2 Microwave Radar Sensor Module, 10m Range₹287
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389- Uno R3 development board: the controller used in the wiring tableFind this part
5 V relay module with optocoupler: to switch a light or load5V Relay Module with Optocoupler₹74
RCWL-0516 microwave radar motion sensor: the cheapest microwave motion moduleRCWL-0516 Microwave Radar Motion Sensor Module₹27
HC-SR501 PIR motion sensor module: a PIR to compare or combine with radarHC-SR501 PIR Motion Detector Sensor Module₹59Closest match, check the specs
Alternatives and when to choose them
- RCWL-0516: the cheapest 3 GHz radar module.
- Hi-Link 5.8 and 10 GHz radars: adjustable over UART.
- PIR sensors: ignore objects that are not warm.
Common mistakes to avoid
- Mounting behind metal.
- Placing near fans.
- Expecting presence detection of still people.
- Two modules too close together.
Frequently asked questions
How is the RCWL-0516 different from a PIR?
It uses radar, sees through plastic and does not need heat.
Why does it trigger falsely?
Fans, vibration or nearby metal reflect the radar; move or rotate the module.
Can I reduce the range?
Yes, by adding a resistor on the R-GN pads.
Is the output safe for ESP32?
Yes. The OUT pin gives 3.3 V even when the module runs from 5 V.
Can it detect still people?
No. It only sees movement; use an mmWave presence radar for still people.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

