Rats are a pest difficult to control
Rats are very intelligent animals who quickly learn to avoid traps and get used to repellent methods like strong odors and ultrasounds.
They can even become resistant to certain rat poisons, and in any case, poison is not the most advisable method to control a rat infestation since it can be dangerous for children, non-targeted animals, and the environment.