# PIR motion sensor connection

**URL:** https://wled.discourse.group/t/pir-motion-sensor-connection/11817
**Category:** Hardware
**Created:** [May 12, 2024, 4:56pm UTC](https://wled.discourse.group/t/pir-motion-sensor-connection/11817 "2024-05-12T16:56:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hungta2001](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hungta2001/32/5992_2.png) [@Hungta2001](https://wled.discourse.group/u/Hungta2001)
#### Post date: [May 12, 2024, 4:56pm UTC](https://wled.discourse.group/t/pir-motion-sensor-connection/11817/1 "2024-05-12T16:56:15Z")

</div>

Hi, I have connected an ESP32 to a PIR sensor as shown below.  
The PIR sensor is connected to the ESP32’s D2 pin with a wago clip. To this point I am not sure what GPIO pin it’s to put in the Button value in the WLED settings.

 ![IMG_4425](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/0/0881bad00790594f2fb21c0be9810df25dcd95d1.jpeg)
