If you already are suffering from an infestation the best way to get rid of them is to let the top part of your soil dry for a couple of days. This will make the gnats go look for another place to lay the eggs and the larvae will die. Be sure to do the same to all the plants in your grow room or they will just migrate to the nearest plant. If there are too many of them and you can’t deal with them this way, you can use yellow sticky cards, Neem Oil, or an organic powdered insecticide to sprinkle on top of the soil. While yellow sticky cards and neem oil will only take care of the adults and powdered insecticide of the larvae, you will need a combination of them both to effectively get rid of all of them.