# Usermod with SR501

**URL:** <https://wled.discourse.group/t/usermod-with-sr501/7309>\
**Category:** Questions\
**Created:** [January 31, 2023, 9:30am UTC](https://wled.discourse.group/t/usermod-with-sr501/7309 "2023-01-31T09:30:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Wu](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mark\_Wu](https://wled.discourse.group/u/Mark_Wu)\
**Post date:** [January 31, 2023, 9:30am UTC](https://wled.discourse.group/t/usermod-with-sr501/7309/1 "2023-01-31T09:30:58Z")

</div>

Hi  
I try to enable the usermod with PIR sensor and the PIR switch sequentially(on-\>off-\>on-\>off). I have checked the same wiring on ESPhome and the sensor worked correctly. Did I miss any settings or codes need to be adjusted in usermod?

 ![WechatIMG162](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/1/19115e1dd8d49ecf4be8a6b1b190603f1c38a1ff.jpeg)

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [January 31, 2023, 1:14pm UTC](https://wled.discourse.group/t/usermod-with-sr501/7309/2 "2023-01-31T13:14:21Z")

</div>

I am not sure 0s is ok for off time. Try larger time.
