Relative humidity sensor for tough processes