Summarize this article:

Adult moths are generally gray with hints of either red or white coloring, and they measure roughly 1/2 inch (1.27 cm) long. Larvae are about 1/2 inch (1.27 cm) long and look like worms with 5 pairs of legs. The easiest way to spot a pantry moth problem is to actually see an adult moth flying around your pantry. This usually happens at night rather than during the day. If you suspect that you may have a pantry moth infestation, check all the dry food in your pantry. Moths hide out in flour, cereal, rice, and other grains most often, but you should also check pet food, dried fruit, or any other dry food products. In short, check everything. Look in the corners and along the inside edges of the cupboards for clumps of stringy or grainy material. Pantry moths leave webbing almost everywhere that they crawl, and it is within the cocoon that they can lay hundreds of eggs. Cocoon webbing is usually found behind where a shelf meets a wall or beneath shelf paper. Small holes appearing in dry food packaging that you haven't created are an easy way to tell if your home has pantry moths. Check all boxes, bags, and plastic wrapping for signs of these pests. The holes won't always appear only once the food is in your home. Food is sometimes sold already contaminated with pantry moths, so check all packaging before you purchase your groceries.
Look for adult moths or larvae. Check your pantry for cocoon webbing. Inspect your dry food packaging for holes.