Quick note - If it only drops at night check power first: when the IR night vision turns on the camera draws more current, and weak adapters or long, thin USB cables can make it reboot, so try the original 5 V adapter and a short and thicker cable. On WiFi models, turn off band steering/Smart Connect and avoid DFS channels so it doesn’t hop bands; reserving a DHCP address for the camera can help too. On radio-linked units, disable VOX/eco mode since it can look like a lost signal when it’s sleeping.
Often the easiest answer is placement. If the sensor can see the door crack or any hanging fabric it will eventually catch a little temperature ripple. Mount the bars farther back on the side walls and tilt them so the sensor points at a solid surface or the floor.
A thin door sweep or stick on weatherstrip around the strike side helps too. I actually added two small felt bumpers on the door stop so it closes tighter. No more ghost activations and I did not have to return anything.