A system includes a sensor including a window; at least three lamps positioned to illuminate the window and be able to generate different ranges of wavelengths than one another; a cleaning component positioned to clean the window; and a computer communicatively coupled to the sensor, the lamps, and the cleaning component. The computer is programmed to activate the lamps and actuate the cleaning component based on data generated by the sensor during the activations of the lamps.