Humidity Sensor Problem

Humidity sensor hs1101 is connected to TLC555 and at the same time connected to microcontroller AT89c52. Timer 0 is used for timing 100ms, timer 1 counts, and the count value is the frequency value.
Frequency represents humidity, how can I use program C to transfer humidity RH?
Reference here:
Thanks in advance.