HSBC Interview Question

How does a humidity sensor measure Humidity?