Higgs, that does work!! I know!
I have an electric model that I have used in my garage for years and it keeps the mice out. I was told about it by a friend years ago. He said it gives the mice a “headache” and drives them nuts.
I don’t know, but it works.
And the moth balls work equally as well. Mess with an animals sense of smell and they’ll leave. Trouble with moth balls is they melt away fairly quickly, so your constantly replacing them. I use them under my umbrella next to the grill. I had a bat once under there. Imagine my surprise when I opened it up.
I like having bats around for the mosquitoes they eat, but at a distance.