SHT11 Sensor: Incorrect Readings, Calibration?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

SHT11 Sensor: Incorrect Readings, Calibration?

Postby fmc » Wed Feb 06, 2013 2:48 am

Hi - I am using the SHT11 Temp/Humidity sensor with an Arduino Uno. I followed multiple people's kind insturction guides on how to get things going but am getting wacky readings along the lines of -40 C, -40F and -5% humidity...Any ideas?

I connected this way and used the below .pde sketch (ReadSHT1xValues.pde)

Pin 1 SHT11 ---> pin 10 on Arduino / "dataPin"
Pin 3 SHT11 --->Pin 11 on Arduino / "clockPin"
Pin 4 SHT11 --> Ground on Arduino
Pin 8 SHT11 ---> 5v Arduino (also tried 3.3V)

I know I can offset this error in my code but....this beats the point of paying for the sensor so any ideas would be so appreciated!

Thanks so much,

FM


Code: Select all

/**
* 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  10
#define clockPin 11
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: ");
  Serial.print(humidity);
  Serial.println("%");

  delay(2000);
}


fmc
 
Posts: 2
Joined: Wed Feb 06, 2013 2:29 am

Re: SHT11 Sensor: Incorrect Readings, Calibration?

Postby adafruit_support_bill » Wed Feb 06, 2013 6:28 am

Can you post a photo showing all your connections? Those readings are way too far off.
User avatar
adafruit_support_bill
 
Posts: 16054
Joined: Sat Feb 07, 2009 9:11 am

Re: SHT11 Sensor: Incorrect Readings, Calibration?

Postby fmc » Wed Feb 06, 2013 11:35 am

thank you so much for any help: seriously.
i followed another woman's photo/code. worked for her but not me. here is what i did:
Attachments
ardSHsm.jpg
ardSHsm.jpg (954.4 KiB) Viewed 255 times
fmc
 
Posts: 2
Joined: Wed Feb 06, 2013 2:29 am


Re: SHT11 Sensor: Incorrect Readings, Calibration?

Postby mynegation » Sat Feb 09, 2013 12:14 am

I had similar readings when I attached CLOCK and DATA to the wrong pins on Arduino (basically 9 and 10 instead of 10 and 11 that were specified in the code). Once I rewired to correct pins, everything started working as expected. Your wiring seems to be consistent with the code, but I would check the quality of wiring first.
mynegation
 
Posts: 1
Joined: Fri Jan 18, 2013 12:58 am


Return to Arduino

Who is online

Users browsing this forum: JerBear and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]