Place your Quash as close to the source of your gnats as possible. You may need to raise it on something if your plant is up high. Ideally, the UV light will be close to with the soil of your plant, where the fungus gnats will be hovering.