This message was posted on behalf of Intel Corporation
In http://www.st.com/content/st_com/en/products/mems-and-sensors/humidity-sensors/hts221.html you can find all the official documentation. If you would like to implement this sensor in your project you should read and understand them but I'd suggest you to pay special attention to HTS221 digital humidity sensor: hardware guidelines for system integration, HTS221 digital humidity sensor: reference design implementation and most of all to Interpreting humidity and temperature readings in the HTS221 digital humidity sensor.
The last document I mentioned has a lot of useful information and it even includes sample codes. These samples might not work on Edison out of the box but they can be modified to implement mraa so the sensor can be controlled by Edison.
I'm very thankful for the reply and it is helpful for me.As you have said I have used I2C-6 and compiled the below attached C-program.I have got the output,but the temperature values showing are wrong.In the program given,for the different temperatures,the T0,T1,T2,T3 values are remaining same,though the temp value is changing ,temperature values are wrong after the conversion.The same repeates for humidity also.The formula for the conversion is correct as it is giving the correct values in the arduino board and raspberry pi.Can I know how can I get the correct temperature and humidity values as this completes my project.Thanks in advance.Please do needful.
Thanks and Regards,
test.c.zip 1.5 K