Digital_Temperature_and_Humidity_sensor__With_Stainless_Steel_Probe___SKU__FIT0320_-DFRobot

Introduction

This is an anti-rust, robust and precise SHT1x sensor, which can master enterprise-class and industrial-level applications. It can be applied in various fields: telepoint base stations, electronic control cabinet, production site, storehouse, machine rooms, greenhouses, animal farming, medicine stock and etc. Metallic package enables it to deal with the very dusty or other severe circumstance. the wall-hanging style makes it easy to install.

The metallic mesh covering the sensor adopts method of infiltering copper during sintering to enhance the temperature resistance, pressure resistance, and wearing resistance of it. The 2-wire serial interface and internal voltage regulation allows for easy and fast system integration. Moreover, it's Arduino compatible and we will supply the library for it.

Specifition

Applications

Connecting diagram

warning_yellow.png NOTE: The line to the ground is blue instead of black.

Sample Code

//Arduino Sample Code for SHT1x Humidity and Temperature Sensor
//www.DFRobot.com
//Version 1.0

#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);
}

Documents

More Documents

DFshopping_car1.png Get SHT1x Humidity and Temperature Sensor (SKU: DFR0066) from DFRobot Store or DFRobot Distributor.

Turn to the Top