Error Using the HIH61XX Arduino Library

Hi team,

I am trying to make use of the HIH61xx Arduino Library but I keep getting this errors :

"example:6: error: 'HIH61XX' does not name a type
example.ino: In function 'void loop()':
example:19: error: 'hih' was not declared in this scope"

I downloaded the library from :
http://playground.arduino.cc/Main/HoneywellHumidIconTMDigitalHumidity-TemperatureSensors

How do I fix this problem?

Thank you.

David.

How do I fix this problem?

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.

Thank you. It worked after doing that

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);

void setup()
{
Serial.begin(9600);
Wire.begin();
}

void loop()
{
// start the sensor
hih.start();
while(1) {

// request an update of the humidity and temperature
hih.update();

Serial.print("Humidity: ");
Serial.print(hih.humidity(), 5);
Serial.print(" RH (");
Serial.print(hih.humidity_Raw());
Serial.println(")");

Serial.print("Temperature: ");
Serial.print(hih.temperature(), 5);
Serial.println(" C (");
Serial.print(hih.temperature_Raw());
Serial.println(")");

delay(1000);
}
}

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.

Please find attached an excel sheet that shows the reading at room temperature, at body temperature and the wiring diagrams.

Thank you.

PrintShots.xlsx (752 KB)

On that screenshot the value of the pullup resistors is not specified. What did you choose? Are you sure you connected to 3V3 and not 5V?

How long is the cable between the Arduino and the sensor?

What exact type of sensor do you have?

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.

The values of the resistors and capacitors are:
2 pullup resistors range from 1K - 100K
0.1µF capacitor
0.22µF capacitor

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)

Try using 2k2 resistors for pull-ups. 100k is too big, 1k is out of specs. Pull-ups go to 3V3, just to be sure.

How long is the connection between the Arduino and the sensor?

What kind of cable do you use for this connection?

Please post a picture of your setup.

Hi,

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.

David