I just cleaned out a small floor to ceiling pantry in the kitchen. I had been moving items from packaging to glass containers, some plastic this past year.
We had about 10 moths a few months ago, and searching through I didn't find the culprit. Yesterday I found 2. One was a more than year old corn grits kept in a plastic jug, dead moths and worms on top of the grits. The other I had bought psyllium husks for structure in baking crackers just this year, it was in a plastic container as well, with webs.
Everything else is in mostly glass now, and I disinfected and cleaned off all the shelves and walls and woodwork, every surface, and reorganized it. I love it.
About 15 years ago, I found another strange thing that the moths had gotten into, they were tea bags, the glue for the wrappers for the tea bags was apparently food for moths. To me, that means, almost anything packaged with glue, will also be a magnet for them. Bread bags, sugar bags, boxes of dry foods, all have glue.