The primary method for avoiding problems with stored product pests is good sanitation. Avoid these practices and you will probably never have this problem. Cookie crumbs and bits of dried pet food may fall behind furniture or under appliances where children play or pets are fed. Toaster crumbs and crumbs from food preparation fall into cracks beside the stove or refrigerator. Stored grains, etc., may also fall behind storage drawers.
Pests can develop here without being observed and explode into near unmanageable numbers.
Most cupboard pests can chew their way into cardboard boxes or plastic sacks. Place stored materials into tight-fitting containers, preferably of glass or other tough material. If an infestation should occur under these conditions, it probably will be limited to a single jar. Glass jars should have rubber seals, and plastic containers must have tight-fitting seals. Tiny hatchlings can crawl through even the tiniest of gaps.