How are you expecting this to detect?
Specs say “max 300mm detection”. I would think that’s a little optimistic, maybe 150mm.
Also, where is the module located?
In a very bright room, it may not work at all. Try covering the LED a little to block day light.
Then, if still not working as desired...