They are drawn to moisture and they lay their eggs on moist matter and in about four days the eggs hatch and the larvae will begin to eat organic matter and worse yet feed on the roots of your plants.
Remove all trimmed plant matter, covers your soil with about an inch of sand, make sure you have NO damp or wet trash or garbage or anything anywhere around or they will not only end up in your grow room, they will take over your home.
I know someone who did not get on top of them fast and ended up with his house being THICK with them, every room. There were so many in his kitchen, thanks to damp trash/garbage not being removed almost daily, that the combined number of them caused a buzzing sound so loud that they sounded like he had one of those really big flies in his kitchen, the ones that are so loud they sound like they are gasoline powered. The things laid their eggs on damp paper towels and used coffee filters and other moist things in the trash. They laid eggs in sink drains in his house that were seldom used and he even found they were using the tank of a toilet that was very seldom used. He had to bomb his house twice to get rid of them all.
Now that is by far the most EXTREME case of them I have ever known of, but it can happen if you let them get a good foothold and then spread throughout your house.
You have to stop the breeding cycle by depriving them of ANY moist/damp locations to lay eggs.
If you spray or bomb for them there will still be eggs and they will be back. You can use all the no pest strips and other methods of trying to catch/trap them in the world but you will never catch/trap them all before at least some lay eggs, so you will keep having them.
Do not allow any conditions in your house to exist where they can lay eggs and they will be gone fairly soon.