It is called a hygrometer.