The answer to 'how did centipede get in my house' is that centipedes often enter homes through cracks and crevices in the foundation, walls, or around windows and doors. They are attracted to moisture and can make their way inside seeking food, water, and shelter. Centipedes are predatory insects that feed on other small bugs, so they may be drawn to homes with existing pest problems.
To prevent centipedes from getting inside, it's important to seal up any gaps or openings in the home's exterior. You can use caulk, weatherstripping, or other sealants to close off potential entry points. Maintaining good sanitation and eliminating sources of moisture, like leaks or damp areas, can also help discourage centipedes. If you have a severe centipede infestation, it's best to call a professional pest control technician who can properly identify the species and develop an effective treatment plan.