SHT1x

Hello,

I have been using SHT1x with this sensor: http://www.emartee.com/product/41880/Arduino%20Digital%20Temperature%20&%20Humidity%20Sensor

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("\"/>");
}

r u using the correct pins?
cables connected correctly?

Yes I am using the correct pin and the cable are working ok. I can post a photo of the system if you want.

I assume if the problem is on the cable / pin side, I would receive: Temperature = -40 Like it is said on SHT1x github page.

Thanks

The Sensirion library (v2.0) in the Arduino Playground (http://arduino.cc/playground/Main/InterfacingWithHardware#envhum) supports CRC checking. You could use the NonBlocking example included with the library to debug your connection to the sensor.

Sensirion 2.0 is working fine. I get values acceptable. Thanks for the tip.