When doors are open bugs will enter. They are attracted to the lights and some are just happening in as they are flying and crawling about everywhere. Your best bet is to keep screens on windows and screen doors closed. For additional information on specific types of bugs and managing then in the home contact your county Extension office. They usually have free information on hand and often on line too.
Q&A Library Searching Tips