Simulation of a humidity-sensitive double-layer system