This application note gives an example for microcontroller C code. It includes code for:
Readout of Humidity (RH) or Temperature (T) with basic error handling
Calculation of RH linearization and temperature compensation
Access to status register
Dewpoint calculation from RH and T
UART ...