In [HomeKit Integration (beta)
I added 2 Temperature Sensor and set type to Temperature in homekit it showed Humidity value.
I changed the type to Humidity Sensor and now in homekit I get the Temperature.
I looked in device on the screen it show the Humidity value above the Temperature value.
your program many be looking at the order Temperature 1st not the type
Gary