Means for cleaning the sensor in-situ or during use