By a proper installation of the library. The tar.gz you probably downloaded from code.google.com contains a HiH folder. Inside this folder you have a HIH61XX and a HIH61XXCommander folder. Copy these two folders into the "libraries" folder in your sketchbook folder (the location of which depends on your operating system, on Linux it's named "sketchbook" and directly in your home directory). Then quit the IDE and start it again.
Hi team,
I am currently using the HIH61XX arduino library to read humidity and temperature. The problem I have is that the temperature reading on the serial interface averages say 72 degree C at room temperature. By literature the room temperature should be around 23 C. Also whenever I put my finger on the sensors, the reading goes down to 64 C. This should not be as the human body temperature is around 37 C. How do I fix this problem? Could this be a calculation problem? Please help me as this is very urgent.
This is code of the library I am using:
#include <Wire.h> #include <HIH61XX.h>
// Create an HIH61XX with I2C address 0x27, powered by pin 8
HIH61XX hih(0x27);
Please post the output of that sketch while you're changing the temperature (including the RAW values). And a wiring diagram of the connection between the Arduino and the sensor.
Oh I didnt connect any of the pull up resistors or capacitors. Also I connected the sensor to the 3.3V part of the arduino. Could the fact that I didnt have pull up resistors have affected the readings? I will look for the stated resistors and use. I will let you know if there was any difference in the readings obtained. Thank you.
I have connected the capacitors and resistors as shown on the diagram.
At Room temperature:
With a pull up resistor of 1k, the average readings were humidity 10.41 and temperature 46.80 - goes down to 43 at body temperature (which is not supposed to be so)
with a pull up resistor of 100k, the average readings were humidity 8.0 and temperature 62 - goes down to 56 at body temperature (which is not supposed to be so)
I just found out I have been mistaking the pin 5 for pin 8. I have identified the correct pin and luckily the sensor is not burnt. It works perfectly now as expected. Room temperature is about 24C while it increases when in contact with a human body... Thank you.