Table of Contents

LamaPLC: RCWL - Microwave radar sensor

RCWL-0516 The RCWL-0516 is a compact, low-cost microwave radar motion sensor that uses Doppler radar technology to detect moving objects. Unlike traditional PIR sensors that rely on heat signatures, this active sensor emits 3.18 GHz microwave signals and analyzes the reflected waves to detect movement, even through non-conductive materials like plastic, wood, or glass.

Core Specifications

If you'd like to support the development of the site with the price of a coffee — or a few — please do so here.

Here's a handy tip: you can quickly save this page as a PDF by clicking “export to PDF” in the menu on the right side of the screen.

2026/02/14 23:38

Pinout

Arduino code

This script reads the sensor and turns on the built-in LED (Pin 13) when motion is detected.

const int sensorPin = 2; // OUT pin connected to D2
const int ledPin = 13;   // Internal Arduino LED
 
void setup() {
  pinMode(sensorPin, INPUT);
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
}
 
void loop() {
  int sensorValue = digitalRead(sensorPin);
 
  if (sensorValue == HIGH) {
    digitalWrite(ledPin, HIGH);
    Serial.println("Motion Detected!");
  } else {
    digitalWrite(ledPin, LOW);
  }
  delay(100); // Small delay for stability
}

This page has been accessed for: Today: 2, Until now: 3