A programme on the radio was talking about moths today. They said that moths basically love sweat, skin, dandruff and food (the larvae feed off them), which is why you must wash your clothes before putting them in storage.
A bit gross, I know, but maybe you need to give your carpet a good shampoo, then make sure it is kept as clean as possible e.g. not letting anyone eat food in that room. Worth a try.