How to Control Rats in a Chicken Coop?

Installed hardware cloth + bucket traps. Caught 8 rats in 3 nights! Anyone use ​​solar-powered ultrasonic repellents​​? Do they bother hens?