I am using an HIH7000 digital RHT sensor form honeywell and am only receiving the values of 0 for RH and -40C for temp. I have used the sensor before and received expected data using the same circuit and code. The circuit runs off 3.3v, I have two 2.2k resistors on the I2C lines running to the voltage line. I am just using the example code from the HIH61XX library which worked splendidly the first time I hooked it up. What could be the problem now? Here is the code below:
SYSTEM_MODE(SEMI_AUTOMATIC);
#include <HIH61XX.h>
// Create an HIH61XX with I2C address 0x27, powered by pin 0
HIH61XX hih(0x27, D0);
void setup()
{
Serial.begin(9600);
// Begin I2C communication
Wire.begin();
}
void loop()
{
// start the sensor
hih.start();
// 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);
}
Thank you!