Bugs don't like peppermint oil.
Bay leaves, lavender, pepper int oil. Clean at least twice a year. Keep grains, flours, pasta in sealed containers or in the freezer.
Food attracts bugs, so you need airtight containers to keep them out. Glass jars let you see what is inside and keeps them out. Avoid contact or wallpaper on the shelves since some bugs are attracted to the glue.