Rats hate the smell of their own dead. But using dead rats as deterrent is… well, not for the faint of heart!
Best combo I’ve found: peppermint spray + bright LED lights in dark corners + regular ultrasonic sound rotation. Makes my shed completely rat-proof!