Electronic sensors measure humidity by measuring the capacitance or resistance of air samples. For a capacitive hygrometer, the air flows in between two metal plates. The change in air moisture directly proportional to the change in capacitance between the plates.