Infrared detection is the ability of some snakes, such as pythons and boas, to detect infrared radiation, which allows them to locate warm-blooded prey in total darkness.