Please help...Carpenter Bees getting inside house
We noticed carpenter bees coming out from a gap against the house between the concrete porch and the front door wood step. So a family member sprayed inside that gap after dark and immediately sealed the gap. And I'm not sure if this was the correct way to take care of the problem.
Ever since that gap was sealed, I've found three carpenter bees in less than 24 hours inside the house in the room where the front door is located (where it was sealed outside). I have no idea how the bees are getting inside, since I haven't opened that door. One bee was sitting on my sofa this morning, but it was very docile and I was able to place the bee outside. Then a half hour ago, I saw another bee in that room.
What is the proper way to eliminate carpenter bees? Is it possible that some of the bees are still alive inside their nest where it was sealed, and they're trapped in there? How small of a gap can these bees fit into?
Any advice is appreciated.