Product Recommendation
I started noticing fungus gnats on my indoor tomatoes a few weeks ago. Trying to eradicate them on the cheap, I used small pieces of yellow paper smeared with vaseline and hung them from the grow lights (read this on a website). Two weeks later, I couldn't find one bug stuck on any of these, and they were multiplying, so I started looking online for something else. I decided to take a chance on these.
Gideal 20-Pack Dual-Sided Yellow Sticky Traps for Flying Plant Insect Such as Fungus Gnats, Whiteflies, Aphids, Leafminers,Thrips - (6x8 Inches, Included 20pcs Twist Ties)
https://www.amazon.com/dp/B07QKLHH5X/
I cut two of these 6 x 8 pieces into 4 pieces each and hung them from the grow lights. WOW! Within an hour, I noticed about 2 dozen gnats already stuck. They are now loaded with them, and I have not seen any more flying around when I pick tomatoes. Recommended for indoor and outdoor use.