The principle of operation of ultrasound for insects is very simple: a machine powered by electricity (wall socket or batteries) emits a series of sounds which the pests find very annoying, and therefore cause them to move away.