Hello,
I have been using SHT1x with this sensor: SHT1x Temperature & Humidity Sensor - emartee.com
It was working very well. I wanted to change the old program I was using yesterday and now I only get for temperature in celsius: Between -39 and -37, for humidity: Between -1 and 0
I am using a linux debian with arduino 022 on an arduino mega with a sensor shield. I am using the last SHT1x available on github.
Do you have any idea why it is not working anymore?
The program is:
#include <SHT1x.h>
#define temphumClockPin 40
#define temphumDataPin 41
SHT1x sht1x(temphumDataPin, temphumClockPin);
float tempValue = 0;
float humValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
tempValue = sht1x.readTemperatureC();
humValue = sht1x.readHumidity();
Serial.print("<measure ");
Serial.print("temperature=\"");
Serial.print(tempValue);
Serial.print("\" humidity=\"");
Serial.print(humValue);
Serial.println("\"/>");
}