If you have a broken glass window, you can try this temporary solution to prevent bugs from entering. Use a bit of plastic cling wrap over the broken area to close the opening. Secure it with a bit of tape to make a better seal. This is really a temporary solution and should not be used long term.