It usually comes home in the bag, not through the window
The single most useful fact about pantry moths is where the infestation actually starts: university extension sources agree that eggs or newly hatched larvae are almost always already present in a package when it's purchased, having escaped detection somewhere between the mill, the distributor, and the store shelf. That reframes the whole problem. It isn't that moths got into your kitchen from outside and "took over" — a specific bag of flour, box of pet food, or container of birdseed carried the infestation in, and everything that followed traces back to that one source.
This matters practically because it tells you where to look. Instead of treating every corner of the kitchen as equally suspect, the productive move is checking the oldest, least-sealed dry goods first — the ones most likely to have sat in a warehouse or on a shelf long enough for an undetected egg to hatch.

