There are several ways to effectively prevent carpet beetles from entering your home. You should seal crevices and cracks, regularly clean pet beds and surroundings, clean clothes and fabrics regularly and vacuum consistently.