How is humidity measured?

that feature is there for where some older weather stations would never go above 97%
the new WeatherFlow station reports 100% where my Davis will not (although I do not have the latest sensor available for my Davis)