Every animal that gets into a house came through a gap, so sealing comes first. Traps and one-way doors handle the ones already inside.

For mice we walk the foundation at ground level, find openings as small as a pencil, and fill them with steel mesh and sealant. Snap traps go in locked boxes inside, never loose poison where pets live.
Squirrels and raccoons get a one-way door over the hole they use, so they leave on their own. Once nothing has used it for a few days, we close the hole with metal and seal it.
Mice that eat it often die inside walls, where the smell lasts for weeks. Pets and owls can be poisoned too. Sealing and traps work better.
With a one-way door, it simply leaves. When trapping is needed, we follow Ohio wildlife rules on where the animal can go.
We exclude them, never harm them. Ohio protects bats, so we wait until the young can fly, then fit a one-way exit.