Nanoscale materials in humidistats typically operate by changing their electrical properties in response to variations in humidity. For instance, when water molecules are adsorbed onto the surface of carbon nanotubes, the electrical resistance of the material changes, which can be measured and correlated with humidity levels.