I remember now that my mother in law had bought a ultrasound against mice. It seemed to work a bit for a while, but it didn't work properly.I have one of these that I run in my house and I hatch chicks in the house. I haven't had any issue with it bothering them. I know that they do test them with cats/dogs and other house hold pets and have said they are pet safe I would imagine that would have to include birds as well since people have parrots etc in the homes sometimes. But you can call the company and ask if they think poultry might be effected. I saw on another thread that someone posted putting a trap under a box with a small hole so only a rat would fit no chickens to catch the ones that got in while they worked on making the coop more secure to prevent them from getting back in.
And I’ve searched here as wel. All say ultrasound devices (for different animals) work only temporarily.