great potential in water adsorption, which is beneficial for humidity sensing. However, the polymer-based BF films with poor conductivity lead to low sensitivity, blocking the development of BF films in the field of humidity sensing. [24] Polyelectrolytes are a class of polymers with polar electrolyte groups in the backbones or side chains, which contribute to the hydrophilicity and conductive capability. They are a good choice for humidity sensing materials because of their low cost, solution processability, flexible functionalization, etc., but linear polyelectrolytes are water soluble usually, so they cannot suffer from high humidity atmospheres for a long time. [25] Cross-linked network polyelectrolytes with excellent structural stability can effectively enhance the reliability of humidity sensors. [26,27] In this work, BF method based porous polymer was used for preparing cross-linked polyelectrolyte and applied for humidity sensing. Poly(4-vinylpyridine) (P4VP) was selected to prepare BF film, which was treated with gaseous 1,4-dichlorobutane (DCB) to obtain stable polyelectrolyte sensitive film. The obtained cross-linked polyelectrolyte P4VP-DCB retains both the 3D porous structure and the hydrophilicity. The effect of porous structure on the adsorption of water molecules was explored via quartz crystal microbalance (QCM). The sensing mechanism was also investigated by Cole-Cole plots and equivalent circuits.