We had a mouse recently and bought these wee plug in things that apparently play an annoying noise that repels rodents.
I've got nae idea if they actually do anything or if it's just luck, but we've not had one since. Wouldn't harm to get a few of these - on top of the usual, traps, blocking entrances etc.