Humidity & Temperature Basic Sensor Module DHT11
- Was RM18.00
-
RM10.00
- Product Code: Humidity Sensor Module DHT11
- Availability: In Stock
This is a digital temperature and humidity sensor module that works with all of the Arduino micro-controllers. Because it is a digital sensor it only necessitates 3 connections, Vcc, GND, and a digital pin for data output. With this sensor, you get two measurements (humidity and temp) while only using one digital pin on the Arduino! This sensor would be perfect for creating an HVAC control system or for controlling something like a food dehydrator.
This humidity and temperature sensor is very popular and has an Arduino Library dedicated to it.
Features:
Specifications:
You can download the Library we used here: DHT_Library.zip
Arduino Sketch:
#include <DHT.h> #define dht_apin A0 // Analog Pin sensor is connected to dht DHT; void setup(){ Serial.begin(9600); delay(500); //Delay to let system boot Serial.println("DHT11 Humidity & temperature Sensor\n\n"); delay(1000); //Wait before accessing Sensor } void loop(){ //Start of Program DHT.read11(dht_apin); Serial.print("Current humidity = "); Serial.print(DHT.humidity); Serial.print("% "); Serial.print("temperature = "); Serial.print(DHT.temperature); Serial.println("C "); delay(5000); //Wait 5 seconds before accessing sensor again. //Fastest should be once every two seconds. }