animals, meaning their body temperatures are strongly influenced by environmental conditions.
They often move between warmer and cooler locations to regulate body temperature.
During extremely hot weather, a shaded area beneath a porch or inside a building may be attractive.
During cooler conditions, sheltered locations can offer protection from temperature changes.
The precise behavior depends on the species, season, and local climate.
Entry can be accidental
Sometimes, a snake simply encounters an opening while exploring its surroundings.
A garage door left open for a few minutes may provide an opportunity.