How do intensive farmers control pests?

the keep them in a acage set up to their own temperatur and etc.