Sale!

DHT11 Humidity and Temperature Sensor Module

Original price was: 2,45 €.Current price is: 2,13 €. Excluding VAT

The DHT11 PCB module is a multifunction sensor for Arduino that measures both humidity and temperature. It is usable in various electronic projects and environmental control systems.

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

Tutorial: How to Use DHT11 Temperature and Humidity Sensor Module

The DHT11 module is a simple temperature and humidity sensor used to monitor environmental conditions. Ideal for hobby and school projects, it is easy to use with Arduino and other microcontrollers.

What you need

  • Arduino or compatible microcontroller
  • USB cable
  • Arduino IDE software

Steps

  1. Connect the module DHT11 pins to the Arduino digital pins (check the datasheet for specific pins)
  2. Install the Adafruit_DHT library in the Arduino IDE
  3. Write the Arduino sketch to read the sensor values
  4. Upload the sketch to the microcontroller
  5. Open the Serial Monitor to view the data

Example code

const int DHTPIN = 2; // pin dove è collegato il DHT11
const int DHTTYPE = DHT11; // Tipo di sensore DHT
#include "DHT.h"
DHT dht(DHTPIN, DHTTYPE);
void setup() {
  Serial.begin(9600);
  dht.begin();
}
void loop() {
  float h = dht.readHumidity();
  float t = dht.readTemperature();
  Serial.print("Temperatura: ");
  Serial.println(t);
  Serial.print("Umidità: ");
  Serial.println(h);
  delay(2000);
}

Mini project

Create an alarm system for extreme temperature and humidity conditions. Set warning thresholds and use an LED to signal any issues.

Common mistakes

  • Pin connection error
  • Forgetting to install the Adafruit_DHT library
  • Incorrect alarm thresholds
  • Data reading issues due to extreme environmental conditions

Recommended accessories

  • USB cable
  • Arduino Uno
  • LED and resistor
  • Portable battery for Arduino

Frequently asked questions

Where can I find the Adafruit_DHT library?
You can find it in the library manager in the Arduino IDE.

What are the connection pins for the DHT11?
Check the sensor datasheet for specific details.

Reviews

There are no reviews yet.

Be the first to review “DHT11 Humidity and Temperature Sensor Module”

Your email address will not be published. Required fields are marked *