Smarter motion/occupancy detection

I have this “dumb” motion sensor installed in the garage. At first, it worked great but at times I started noticing that it would randomly go on, when no one is in the garage. My wife claims it happens more often when it’s windy outside. I don’t know if it has anything to do with some heat waves from the water heater or simply is an interference (I tried turning off garage door motion sensor off, even covered it with tape - didn’t help), but I am looking for some alternative/better way to track occupancy.

The only idea I have for the moment is some standalone sensor that would trigger a smart light switch. Why do I think another sensor will work? No reason, just want to try.
Or maybe even a camera like Wyze…
Any other ideas?

Not sure which motion sensor you are using, but all motion sensors are not created equal. here is a link that might help you:

There also could be the possibility that the motion sensor needs new batteries, weird things can happen when the batteries are low, in some devices.