The answer to 'what attracts centipede' is that centipedes are attracted to damp, dark, and humid environments. They thrive in areas with high moisture content, such as basements, bathrooms, and crawl spaces. Centipedes feed on other small insects and arthropods, so the presence of their prey can also draw them indoors.
Centipedes are typically nocturnal and prefer to hide in cracks, crevices, and under objects during the day. They may also be attracted to homes with rotting wood, excess clutter, or poor sanitation, as these conditions provide ideal habitats and food sources.