Use herbs to help deter weevils. Herbs that may work as weevil deterrents include bay leaf, clove, rosemary, black pepper corns, and garlic cloves. A few bay leaves can be placed inside each grain, flour, and cereal container. Use the other herbs on the pantry shelves, otherwise they may flavor your grains.