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