Here are the steps I take to keep bugs out of my grow room:
I spray the perimeter of the grow room periodically with "Home Defense Max", which does seem to create a barrier they don't like to cross, at least on the ground.
I also put a "mosquito dunk" in my water reservoirs...