Motion Sensor wont stop turning on / off

Any reason why my motion sensor is behaving in this way.

Its just constantly sending on/off commands. Connect via a ESP32dev board.

Cheers

INFO Reading configuration /config/esphome/test.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing test (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
Compiling /data/test/.pioenvs/test/src/main.cpp.o
Linking /data/test/.pioenvs/test/firmware.elf
RAM:   [=         ]  12.4% (used 40552 bytes from 327680 bytes)
Flash: [=====     ]  49.5% (used 907849 bytes from 1835008 bytes)
Building /data/test/.pioenvs/test/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/test/.pioenvs/test/firmware.bin"], ["/data/test/.pioenvs/test/firmware.elf"])
Wrote 0xef0d0 bytes to file /data/test/.pioenvs/test/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 10.82 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of test.local
INFO Uploading /data/test/.pioenvs/test/firmware.bin (913616 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from test.local using esphome API
INFO Successfully connected to test.local
[20:13:14][I][app:102]: ESPHome version 2022.12.3 compiled on Dec 31 2022, 20:12:38
[20:13:14][C][logger:293]: Logger:
[20:13:14][C][logger:294]:   Level: DEBUG
[20:13:14][C][logger:295]:   Log Baud Rate: 115200
[20:13:14][C][logger:296]:   Hardware UART: UART0
[20:13:14][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Sensor'
[20:13:14][C][gpio.binary_sensor:015]:   Device Class: 'motion'
[20:13:14][C][gpio.binary_sensor:016]:   Pin: GPIO13
[20:13:14][C][captive_portal:088]: Captive Portal:
[20:13:14][C][mdns:103]: mDNS:
[20:13:14][C][mdns:104]:   Hostname: test
[20:13:14][C][ota:093]: Over-The-Air Updates:
[20:13:14][C][ota:094]:   Address: test.local:3232
[20:13:14][C][ota:097]:   Using Password.
[20:13:14][C][api:138]: API Server:
[20:13:14][C][api:139]:   Address: test.local:6053
[20:13:14][C][api:141]:   Using noise encryption: YES
[20:13:14][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:14][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:14][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:14][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:15][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:16][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:17][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:18][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:19][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:20][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:21][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:22][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:23][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:24][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:25][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:26][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:27][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:28][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:29][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:30][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:31][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:32][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:33][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:34][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:35][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:36][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state OFF
[20:13:37][D][binary_sensor:036]: 'Sensor': Sending state ON

May not be connected correctly. Hard to say without any details.

Is It battery powered? Try replacing batteries.
I had the same issue and replacing the battery fixed it.

It’s a interesting one, but I’m grabing the signal directly off the back of this generic motion sensor.

Shouldnt be an issue I would imagine

@tom_l

It seems similar to your last post in this topic.

Have tried

binary_sensor:
   - platform: gpio
     pin: 
       number: GPIO13
       mode: INPUT_PULLUP
     name: "Garage Sensor"

But no luck.

Binary Sensor constantly changing from on/off - ESPHome - Home Assistant Community (home-assistant.io)