A Centipede infestation is usually because of a moisture problem in and around your home. The most effective way to prevent this pest, is to clean up around the outside of the home. Make sure you remove grass clippings, piles of leaves and wood from your property. Inside your home, make sure there is proper ventilation in your attic, crawl space and basement.