Most snakes can see, but different species of snakes see in different levels of detail. Some snakes even have a second form of sight using specially evolved receptors to detect heat.
Most underground snakes have poor vision, usually just enough to tell the difference between light and dark. If a snake primarily lives on the surface, its vision is usually sharp, and it has excellent depth perception. Some snakes have evolved pit organs, which see heat in the same way as infrared goggles do. If a snake has these organs, it can use either its eyes or the pit organs at any time, and it can use both at the same time.