Bugs in the goods
Dry,
dryer, driest is one plan of attack, freezing is another.
Storing the goods in an oxygen free environment will extend shelf life and reduce infestation. Mylar pouches with oxygen absorbers will do the
job. If using mylar, warm the product and seal the bags while still warm. This will result in a partial vacuum when the product cools. The partial vacuum and oxygen absorbers can reduce the internal oxygen levels to a point that bugs become inactive.
Bugs from outside the goods
5 gallon buckets with rubber gaskets to seal the lids is what I use. If the product is packed in mylar, the
bucket does not need to be food grade-Home Depot has an orange paint bucket that will do the job for less than 3 bucks.
I've had grain moths get into rice and beans. I
feed it to the chickens.