Polymeric humidity sensor using phosphonium salt-containing polymers