If you've got fungus gnats, that means you have too-wet conditions somewhere in your grow area. Gnats need stagnant water or soggy soil to breed. Look under pots, in drain trays, and for puddles. Get rid of them anf the gnats go too!