There is such an electronic device that will help control the rodent population in your home. It is called "Pest OFFence". It looks like a night light that you plug into your wall. Generally in a larger home, you may require 2, or if in a mansion, possibly more. I've been using them since 1997 since I had an uncontrollable mouse problem when I first moved into this house. It was actually so uncontrollable that with 4 cats in the house, I couldn't keep their population in check. The "Pest OFFence" puts out an electromagnetic field through your wiring at just the right frequency that to humans and cats, it's not noticeable, but to rodents, it's like fingernails on a chalk board, which drives them crazy, thereby making them leave. The only time I have ever seen a mouse in the house since I started using them was the day someone or something managed to open my bedroom window in the middle of the winter and I got attacked by the damn thing. See this forum thread for the details on that whole ordeal.