Although a few species of crotalines are highly active by day, such as
Trimeresurus trigonocephalus, a bright green pit viper
endemic to Sri Lanka, most are nocturnal, preferring to avoid high daytime temperatures and to hunt when their favored prey are also active. The snakes' heat-sensitive pits are also thought to aid in locating cooler areas in which to rest. As ambush predators, crotalines typically wait patiently somewhere for unsuspecting prey to wander by. At least one species, the arboreal
Gloydius shedaoensis of China, is known to select a specific ambush site and return to it every year in time for the spring migration of birds. Studies have indicated these snakes learn to improve their strike accuracy over time. Many temperate species of pit vipers (e.g. most rattlesnakes) congregate in sheltered areas or "dens" to overwinter (brumate, see
hibernation), the snakes benefiting from the combined heat. In cool temperatures and while pregnant, pit vipers also bask on sunny ledges. Some species do not mass together in this way, for example the copperhead,
Agkistrodon contortrix, or the Mojave rattlesnake,
Crotalus scutulatus. Like most snakes, crotalines keep to themselves and strike only if cornered or threatened. Smaller snakes are less likely to stand their ground than larger specimens. Pollution and the destruction of rainforests have caused many pit viper populations to decline. Humans also threaten pit vipers, as many are hunted for their skins or killed by cars when they wander onto roads. ==Reproduction==