Keep your outdoor lights out when you don't really need them on. Moths are attracted to the light.
If you have a pack of moths outside of your door because of the light, walk slowly and close the door quickly so the moths can't get in and they are not spooked by the activity.
To get rid of moths in the basement, in the attic or anywhere in your home, hang sachets of cedarwood chips to keep moths away.
You can also wrap some cloves in pieces of cheesecloth or a material that will let the smell of the cloves out and suspend them from your closet rod or tuck them into clothes� pockets to keep moths away as well.