Go Down

Topic: SHT15 problem by Data (Read 1 time) previous topic - next topic


hi everyone
I use the sht15 sensor by Arduino , but output data feel Discontinuous ...What is the problem?
is't my data graphics.

i hope data graphics like it...

it is my code, it's simple example by sht1x
Code: [Select]

* ReadSHT1xValues
* Read temperature and humidity values from an SHT1x-series (SHT10,
* SHT11, SHT15) sensor.
* Copyright 2009 Jonathan Oxer <jon@oxer.com.au>
* www.practicalarduino.com

#include <SHT1x.h>

// Specify data and clock connections and instantiate SHT1x object
#define dataPin  15
#define clockPin 14
SHT1x sht1x(dataPin, clockPin);

void setup()
   Serial.begin(38400); // Open serial connection to report values to host
   Serial.println("Starting up");

void loop()
  float temp_c;
  float temp_f;
  float humidity;

  // Read values from the sensor
  temp_c = sht1x.readTemperatureC();
  temp_f = sht1x.readTemperatureF();
  humidity = sht1x.readHumidity();

  // Print the values to the serial port
  Serial.print("Temperature: ");
  Serial.print(temp_c, DEC);
  Serial.print("C / ");
  Serial.print(temp_f, DEC);
  Serial.print("F. Humidity: ");


Any help is appreciated! Thanks!


I would start by not converting the value to an integer when printing it:

Code: [Select]
Serial.print(temp_c, DEC);


Code: [Select]


I try
Code: [Select]


Results are as follows

Always fluctuate up and down..it is really?..the SHT15 characteristic, or my error...


I don't know this specific sensor. It has an accuracy of +/-0.3°C and a repeatability of +/-0.1°C. Looking at your values your hardware is either defect or you really have an ambient temperature that is drifting. I would try to activate the internal heater of the sensor and see if the temperature is rising about 5-10°C. If this doesn't happen, it's probably broken hardware.


hi pylon
i have seven TH15 Sensor, it always same result.
Impossible to have a defect..maybe it is not suitable...


On the picture I cannot see the pullup for the data line. Is there one on the board or have you installed one the Arduino side?

A missing pullup would explain the strange behaviour...

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131