Microwave Sensor RCWL-0516 Bouncing Question

Newbie here. I’m using an RCWL-0516 with a D1 Mini through Home Assistant to trigger a light on when someone enters a room. The issue I am having it just keeps bouncing from Detected to Clear every few seconds. This is the 2nd one I’ve tried with the same issue, the first one was with an ESP32. I know I must be doing something wrong or maybe there’s something I need to add? Here is the ESPHome code that I uploaded to the D1 Mini. Thank you.

esphome:
  name: mw_sensor01
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "XXXX"
  password: "XXXXXX"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Mw Sensor01 Fallback Hotspot"
    password: "kta0sKXAWsgS"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

binary_sensor:
  - platform: gpio
    pin: D4
    name: "Kitchen Sensor"
    device_class: motion
    #filters:
      #- delayed_on_off: 4000ms

Is it just the nature of that sensor or perhaps EMI?

If you lay the sensor facing flat down on a table, does it turn on?

Some see behind as well. Maybe test between two metal baking trays.

It helps to know if you are dealing with a placement problem or an interference problem.

Yep, these sensors can be very sensitive and even penetrate walls.

This article explains how you can modify the range and trigger length: RCWL-0516 microwave radar motion detector • Wolles Elektronikkiste

Check this:

Using the resistor and capacitor solved the problem for me.

1 Like

#i am using an esp8266 nodeMCU and i ended up having to use gpio16 with a pulldown command

binary_sensor:

  - platform: gpio

    pin:

      number: 16

      mode: INPUT_PULLDOWN

    name: "Home Multisensor Motion"

    device_class: motion
1 Like