See sample code snippet -
// ISR
void hum_alert_isr() {
// Read humidity and temperature values
hdc302x_read(hdc302x_handle, hdc302x_read_bytes);
// Extract temperature and humidity values
hdc302x_temp_celsius = hdc302x_to_celsius(hdc302x_read_bytes[0]);
hdc302x_relative_humidity = hdc302x_to_rh(hdc302x_read_bytes[1]);
// Clear status
hdc302x_read_status(hdc302x_handle);
hdc302x_clear_status(hdc302x_handle);
// Re-enter auto measurement mode
hdc302x_enter_auto_meas_mode(hdc302x_handle);
}