Snakes tend to enter a building for one of two reasons: food or temperature. Since they’re cold-blooded, they may enter a house when they’re looking for a cool or damp area during the day or a warm place at night. They may also come inside when they’re on the hunt for prey, such as mice and rats. They typically attempt to enter basements, attics, cellars and crawl spaces.