ensure that doorways to attics and basements are sealed with draft guards and holes in almost any inside walls and ceilings are fixed making sure that a bat can't mistakenly enter the key elements of your house.
it is https://southernpest.biz/wildlife/bat-removal/