An apparatus for repelling pests includes a vibration generator operably connected to an object that operates in a first vibrating mode and a second non-vibrating mode. An environmental sensor senses a condition external to the vibration generator. A controller receives the sensed condition and controls the vibration generator between the first and second modes in response to the received sensed condition. Vibrations from the vibration generator are transferred to the object.