How is humidity measured?

depends on the quality of the sensor used (and station type you have) if a 100% measurement will ever be seen
this is a hardware thing and not a software thing
but you can set in WD to set 98 or above as 100% (see in the offsets/humidity)