On Wikipedia, it is said that
Dried and sealed in pouches, lavender flowers are placed among stored items of clothing to give a fresh fragrance and to deter moths.
I know many people do it. Has this been tested to actually deter the moths? How effective is it?