A device comprising a transparent window, a photoemitter, a photodetector, and a measurement unit, wherein said photoemitter is configured to illuminate soiling particles accumulating on a surface of said transparent window, said photodetector is configured to generate a signal based on detection of light that passes through said transparent window and reflects and/or scatters from said soiling particles, and said measurement unit determines a soiling level of said transparent window based upon a measurement of said signal.