We've had them before. I put everything (flour in particular) in sealed plastic bags, and also sprinkled bay leaves everywhere, including IN the flour bags. I've heard that bay leaves repel pantry bugs. Also, I wiped everything down well. I don't know what in particular helped, but it seemed to take care of the problem!