Glue traps, homemade traps using safe ingredients, and pheromone-based traps are all products that can be safely used in the pantry. Any pest control products that are used around food should be made without potentially harmful toxins.
Pantry moths can safely be eliminated by opting for traps that are made with pheromones that attract the male moth. Some brands of pheromone pantry traps, such as Pantry Patrol, are designed to attract beetles, moths and several other types of pests. Opt for a brand that attracts many species of pests if the origin or species of the pest is unknown.
Mice can be eliminated by placing large, open glue traps along the baseboards of the pantry or by using nonlethal traps. Set the nonlethal traps in areas where the pests are frequently visible, and check the traps daily, releasing any captured mice in a wooded area. Cockroaches can also be controlled with strategically placed glue traps.
To make a homemade ant trap that eliminates the nest, mix a quart of water with a teaspoon of Borax laundry additive and a cup of sugar. Soak cotton balls in the mixture, and place them in a covered container with holes punched in the sides. The ants take the mixture back to the nest, effectively eliminating the colony. In some cases, the most effective method of eliminating insects in grains and other foods is to throw out infested foods and clean the pantry thoroughly.