AM312 motion sensors going crazy

Some more research. Summary below:
-WEMOS D1 Mini works with the external 220k pulldown resistor to GND, but has some other source of instability (losing/reconnecting to the HA API).
-HUZZAH32 (ESP32 adafruit feather) supports internal “software” pulldown, but the AM312 can’t pullup strong enough to overcome it. 220k resistor yields 2.7v on detect – within spec.
-Pico works with the “software” pulldown, but haven’t measured the voltage. It’s pretty rock solid.

My updated esphome code block:

binary_sensor:
  - platform: gpio
    name: "Motion PIR Sensor 1"
    device_class: motion
    pin: 
      #number: D5 #(wemos)
      number: GPIO21 #(Huzzah32 feather)
      mode:
        input: true
        #pulldown: true #works on RPI PICO.  N/A on wemos D1 mini, used 220k pulldown.  too strong on HUZZAH32, 220K pulldown used
    filters:
      - delayed_off: 30s  #2s is hardware default -- too frequent for my tastes
1 Like