Where do pecker gnats come from?
The main reason you might find gnats and drain flies in the bathroom is from the dampness and moisture that can be found around your bathtub and shower and your air conditioner vents. Also, dirty dishes in the sink and overripe fruit on your counters and your trash can will also attract gnats into your home.
Inside the home, gnats can be attracted to unsealed produce, fresh flowers, houseplants, food spillage and open or overflowing garbage cans. Gnats may also live in sink drains where food residue can collect. Dirty kitchen sink drains can provide food, water, shelter and breeding sites to many fly species.
You can make your own organic traps to kill the adult fungus gnats. You can fill the bottom of a deep bowl with apple cider vinegar or red wine, then add several drops of liquid dish soap. Put it near your infested house plants. The gnats love it, and will fall into it and die.
5 Ways to Get Rid of Gnats
What do gnats hate the most?
The gnats are either hatching in potted plants or in food trash. Fruit, especially bananas, have the eggs already on them.