DHT11 Humidity Temp Sensor
DHT11 Humidity Temp Sensor
User Guide
SKU: SSR1006
Brief Data:
1 www.handsontec.com
Functional Diagram:
Mechanical Dimension:
Unit: mm
2 www.handsontec.com
Application Example with Arduino Uno:
This is a real simple set up. Wire up the schematic as shown below:
/*******************************************************
Name:DHT11 Humidity & Temperature Sensor with Arduino
Description: Example testing sketch for various
DHT humidity/temperature sensors
Website: www.handsontec.com
Email: [email protected]
*******************************************************/
#include "DHT.h"
3 www.handsontec.com
// Initialize DHT sensor.
// Note that older versions of this library took an optional third parameter to
// tweak the timings for faster processors. This parameter is no longer needed
// as the current DHT reading algorithm adjusts itself to work on faster procs.
void setup() {
Serial.begin(9600);
Serial.println("DHTxx test!");
dht.begin();
}
void loop() {
// Wait a few seconds between measurements.
delay(2000);
// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t) || isnan(f)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.println(" *C ");
Once the sketch had successfully uploaded, you can also observe the humidity & temperature from the
module output by opening the Serial Monitor:
4 www.handsontec.com
Web Resources:
https://howtomechatronics.com/tutorials/arduino/dht11-dht22-sensors-temperature-and-humidity-
tutorial-using-arduino/
5 www.handsontec.com
Handsontec. com
We have the parts for your ideas
6 www.handsontec.com
The Face behind our product quality…
In a world of constant change and continuous technological development, a new or replacement
product is never far away – and they all need to be tested.
Many vendors simply import and sell wihtout checks and this cannot be the ultimate interests of
anyone, particularly the customer. Every part sell on Handsotec is fully tested. So when buying from
Handsontec products range, you can be confident you’re getting outstanding quality and value.
We keep adding the new parts so that you can get rolling on your next project.
P
Engineering Material Mechanical Hardware Electronics Components
7 www.handsontec.com