Driver-assistance systems help prevent accidents. Quite simply, the more a car knows about its surroundings, the more intelligently it can respond to them. Researchers have now developed an optical sensor for the windshield that can even tell the difference between fog and darkness.