depends which security software you use some have much better motion detection options than others
i tried an awful lot of them when i had a neighbour from hell
totally recommend blue iris software
it has numerous options to stop false triggers of motion detection
though as said on outside cameras spiders do trigger them dont know if its the infra red light or just spiders being spiders and building webs on anything
if its for outside use the other thing i learned was dont buy a cheap camera they are totally awful in dark conditions