Temperatuur- en luchtvochtigheidssensor voor Arduino, geschikt voor breadboard en dupontkabeltjes.
SKU: OT714-D61 Número do artigo: AB058 EAN: 8756742620748 Localização: D06.01
Alternativa
Sensor de temperatura e humidade do ar em 1 | DHT22
€ 4,30
Ver esta alternativa
Como ligar o Sensor de temperatura e humidade do ar em 1| módulo DHT11 para Arduino a um Arduino UNO ou ESP32, com um sketch de exemplo que podes carregar já.
This project reads temperature and humidity data from the DHT11 sensor module and prints the measurements to the Serial Monitor every two seconds. Simply wire the module directly to the 5V, GND, and digital pin 2 of your Arduino Uno.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : DHT11 Temperature and Humidity Reading
* Board : Arduino UNO (arduino:avr:uno)
* Parts : DHT11 Sensor Module
* Libraries : DHT sensor library 1.4.7
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <DHT.h>
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(115200);
while (!Serial);
Serial.println(F("DHT11 Sensor Demo"));
dht.begin();
}
void loop() {
// DHT11 sample rate is up to 1 reading every 2 seconds
delay(2000);
float humidity = dht.readHumidity();
float temperature = dht.readTemperature();
if (isnan(humidity) || isnan(temperature)) {
Serial.println(F("Failed to read from DHT11 sensor!"));
return;
}
Serial.print(F("Humidity: "));
Serial.print(humidity, 1);
Serial.print(F("% | Temperature: "));
Serial.print(temperature, 1);
Serial.println(F("°C"));
}
Bibliotecas necessárias: DHT sensor library 1.4.7
Wiring diagram and example code generated by Codey.online — https://www.codey.online
This project reads ambient temperature and relative humidity using the DHT11 sensor module connected to an ESP32. Sensor values are sampled every 2 seconds and printed directly to the Serial Monitor at 115200 baud. It is an easy way to verify your DHT11 sensor is working properly.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : ESP32 DHT11 Temperature & Humidity Sensor
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : DHT11 Sensor Module
* Libraries : DHT sensor library 1.4.7
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include "DHT.h"
#define DHTPIN 4
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(115200);
Serial.println("DHT11 Sensor Demo");
dht.begin();
}
void loop() {
delay(2000);
float humidity = dht.readHumidity();
float temperature = dht.readTemperature();
if (isnan(humidity) || isnan(temperature)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.print(" % | Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
}
Bibliotecas necessárias: DHT sensor library 1.4.7
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Este é a versão mais pequena e um pouco menos precisa do DHT22. O sensor mede tanto a temperatura como a humidade do ar.
Módulo adequado para breadboard e cabos dupont (incluídos)
A faixa de medição da temperatura é de 0 a 50 graus Celsius.
Precisão de +/- 2 graus
Corrente: 3.3v até 6v
Incl. cabos dupont
Indicador LED
Dimensões
Comprimento: 3,1cm
Largura: 1,44cm
Altura: 0,75cm
| Alimentação | 3.3V a 6V |
|---|---|
| Largura | 1,44 cm |
| Adequado para | breadboard |
| Faixa de temperatura | 0 a 50 °C |
| Comprimento | 3,1 cm |
| Altura | 0,75 cm |
| Precisão | +/- 2 graus |
mede muito bem a temperatura com precisão
Não ficas satisfeito? Tens 30 dias após a receção para devolver o produto.
Tudo sobre devoluções
Sensor de temperatura e humidade do ar em 1| módulo DHT11 para Arduino