1x Dht11 Temperature And Humidity Sensor Lab Calibrated, Accurate And Stable

US $2.85

  • Thomson, Georgia, United States
  • Jan 29th
DHT11 Temperature and Humidity Sensor use with arduino or Raspberry PI lab calibrated, accurate and stable the signal output is digital Pin out Diagram included with each DHT11 The DHT11 is lab calibrated, accurate, stable and its signal output is digital. It is inexpensive for the given performance. The DHT11 is a robust one-wire device that can measure both temperature and humidity. The DT11 sends out pure digital data using just one signal line to both receive the trigger signal and send the serial data. Measures temperature from 0°C to 50°C (32°F to 122°F) with an accuracy of 2°C! Measures relative humidity from 20 to 80%RH with an accuracy of 5%RH! The DHT11 sensor is ready to be soldered into a standard protoboard or wired into a breadboard using the 4 x 0.1" pins on the bottom of the unit. It has simple voltage requirements (3VDC - 5.5VDC) and sends data to the Arduino or Raspberry PI in an easy to read format. The Pin out has been tested and works. The attached sketch is for an arduino mega 2560, you may have to change the port depending on your arduino model. citive humidity sensor and a thermistor.  •3 to 5V power and I/O  •2.5mA max current use during conversion (while requesting data)  •Good for 20-80% humidity readings with 5% accuracy  •Good for 0-50°C temperature readings ±2°C accuracy  •No more than 1 Hz sampling rate (once every second)  •Body size 0.6" x 0.5" v 0.25"  15.5mm x 12mm x 5.5mm  •4 pins with 0.1" spacing /* Tested on an arduino mega256 R3 code v1.0.4 connect arduino gnd to - pin on sensor connect arduino 5V to middle pin on sensor connect aruino A15 to S on sensor ReadHumTturDHT11alternate2 ver 19-July-2010 See for more information.... http://sheepdogguides.som/arduino/ar3ne1humDHT11.htm Just "huffing" on the sensor from deeply filled lungs should show a near instant rise in humidity KY_015_dth_dpin 69 is A15 on mega 2560 */ #define KY_015_dht_dpin 69 byte bGlobalErr;  //for passing error code back from complex functions. byte KY_015_dht_dat[5];  //Array to hold the bytes sent from sensor. void setup() {   InitDHT();   Serial.begin(9600);   delay(300);   Serial.println("Humidity and temperature\n\n");   delay(700); } void loop() {   ReadDHT();   switch (bGlobalErr){      case 0:  Serial.print("Current humdity = ");  Serial.print(KY_015_dht_dat[0], DEC);  Serial.print(".");  Serial.print(KY_015_dht_dat[1], DEC);  Serial.print("%  ");  Serial.print("temperature = ");  Serial.print(KY_015_dht_dat[2], DEC);  Serial.print(".");  Serial.print(KY_015_dht_dat[3], DEC);  Serial.print("C  ");         Serial.print((KY_015_dht_dat[2]* 9 +2)/5+32);  // The +2 takes care of the better rounding  Serial.print(".");  Serial.print(KY_015_dht_dat[3], DEC);         Serial.println("F  ");         break;      case 1:         Serial.println("Error 1: DHT start condition 1 not met.");         break;      case 2:         Serial.println("Error 2: DHT start condition 2 not met.");         break;      case 3:         Serial.println("Error 3: DHT checksum error.");         break;      default:         Serial.println("Error: Unrecognized code encountered.");         break;       }   delay(800); } void InitDHT() {   pinMode(KY_015_dht_dpin,OUTPUT);   digitalWrite(KY_015_dht_dpin,HIGH); } void ReadDHT() {   bGlobalErr=0;   byte dht_in;   byte i;   digitalWrite(KY_015_dht_dpin,LOW);   delay(18); //delay cycle for 18ms   delay(5);   digitalWrite(KY_015_dht_dpin,HIGH);   pinMode(KY_015_dht_dpin,INPUT);   delayMicroseconds(40);   dht_in=digitalRead(KY_015_dht_dpin);   if(dht_in)   {     bGlobalErr=1;     return;   }   delayMicroseconds(80);   dht_in=digitalRead(KY_015_dht_dpin);   if(!dht_in)   {    bGlobalErr=2;    return;   }   delayMicroseconds(80);   for (i=0; i<5; i++)     KY_015_dht_dat[i] = read_KY_015_dht_dat();   pinMode(KY_015_dht_dpin,OUTPUT);   digitalWrite(KY_015_dht_dpin,HIGH);   byte dht_check_sum =        KY_015_dht_dat[0]+KY_015_dht_dat[1]+KY_015_dht_dat[2]+KY_015_dht_dat[3];   if(KY_015_dht_dat[4]!= dht_check_sum)    {bGlobalErr=3;} } byte read_KY_015_dht_dat(){   byte i = 0;   byte result=0;   for(i=0; i< 8; i++)   {     while(digitalRead(KY_015_dht_dpin)==LOW);     delayMicroseconds(30);       if (digitalRead(KY_015_dht_dpin)==HIGH)      result |=(1<<(7-i));     while (digitalRead(KY_015_dht_dpin)==HIGH);     }   return result; }

Directions

Similar products from Input Keypads, Sketchpads & Other Devices

People who viewed this item also vieved

By clicking "Accept All Cookies", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.

Accept All Cookies