IR motion detect goes OFF within 1 sec

So I have a SONOFF sn-zb-03p motion sensor in my hallway to turn the lights on and off. However sometimes within a second after turning it on it stopped detecting motion and turns off the lights right away again. And then they wont turn on for a while. This ofcourse is super annoying. Any ideas on what can cause this and how to fix it? Thanks a lot!

For sensor controlled light you should consider occupied for xx seconds after trigger

Basically. Learn how it works. Most battery motion sensors limit how many times it can trigger within a time period to limit battery use. You need to determine way that is

Let’s assume it is one minute
Your lights should turn on and remain on at least 70 seconds. This will give time for a new trigger to occur keeping lights on and keeps you from finding yourself wandering in the dark.

How have you implemented that? Automation? Please share the YAML and we can show you what to do.