SHT10 digital humidity and
temperature sensor is the low cost version of the reflow solderable humidity
sensor series. The accuracies have been opened to a level that guarantees a
very competitive price. The capacitive humidity sensor is available up to high
volumes and as every other sensor type of the SHTxx family, it is fully
calibrated and provides a digital output.
Features:
·
Interface Type: Serial
(I2C non standard)
·
Humidity
Ranger:0-100%RH
·
Tempereature ranger:
-40-128.8 degree Celsius
·
Humidity
accuracy:±4.5%RH
·
Temperature
accuracy:±0.5 degree Celsius (25 degree Celsius)
·
Size: 32x17mm
·
Weight:5 gram
Wiring Diagram
|
Wiring Diagram |
โค้ด
/**
* 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);
}