Black pepper,
Animals hate it.
I rent a storage unit for my finished cars, I spread some around the complete inside of the stall.
It works so well it well, even spiders will not build a web.
If one of your neighbors dogs likes to poop in your yard, sprinke some pepper on it, they will not poop there again.