Plug-in gnat traps are used to control gnat infestations in indoor settings. These traps emit ultraviolet light to attract gnats, and a sticky pad traps the insects once they enter. Plug-in gnat traps are designed for easy use and require minimal maintenance, making them a convenient solution for homeowners and businesses.