Is it a Pantry Moth or a Clothes Moth?
To avoid pantry moths, keep food sealed. They are disgusting. For wool moths (I've had lots of problems with them), the solution for my closets - too late for some items - is pesticide spray. Set the thing off in a closet, and close ithe door. It works.