Heating of the surfaces via passing current through a conductive transparent film has been shown to repel and remove contamination. It has been used in inkjet printers to reduced ink contamination on sensor windows.