HTU21D Temperature and Humidity Sensor Module

SKU: 801 Category: Tag:

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

195,00 EGP

17 People watching this product now!

Payment Methods:

Description

<p><strong>HTU21D</strong> <a href=""https://robu.in/product-category/sensor/temperature-humidity-sensor/"">Temperature & Humidity Sensor</a> is a premium quality Humidity & Temperature Sensor. You can buy this Sensor from <a href=""https://robu.in/"">Robu. in</a> at a reasonable price.</p> <p>The<strong> HTU21D</strong> <strong>Temperature and Humidity Sensor</strong> Module is a low-cost, easy-to-use, highly accurate, digital humidity and temperature sensor. This sensor is ideal for environmental sensing and <strong>data logging and perfect for weather stations or humidor control systems</strong>. All you need is two lines for <strong>I2C communication and you’ll have relative humidity readings and very accurate temperature readings as a bonus.</strong> The measured time of this sensor is up to<strong> 50 msec</strong></p> <p>There are only four pins that need to be hooked up in order to start using this sensor in a project. <strong>One for VCC, one for GND, and two data lines for I2C communication</strong>. This breakout board has built-in <strong>4.7k pull-up resistors for I2C communication</strong>s. If you’re hooking up multiple <strong>I2C devices</strong> on the same bus, you may want to disable these resistors.</p> <p><em><strong>Note:</strong></em></p> <p><em>Full drops of water can damage the sensor. We recommend wrapping the board in Teflon/irrigation tape for extreme conditions where water droplets may find their way into the sensor.</em></p> <p><strong>Note : HW-520 on module doesn’t affect the working of product .</strong></p> <hr /> <h4><strong>Package Includes:</strong></h4> <p>1 x HTU21D Temperature and Humidity Sensor Module.</p> <p>1 x Set of Header. (Unsoldered)</p>

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
HTU21DVCC/GND/SDA/SCL3.3-5V / GND / board SDA / board SCL
📟
HTU21D Temperature and Humidity Sensor Module
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
HTU21D Temperature and Humidity Sensor Module - Arduino Uno
HTU21D Temperature and Humidity Sensor Module - Arduino Nano
HTU21D Temperature and Humidity Sensor Module - Arduino Mega
HTU21D Temperature and Humidity Sensor Module - ESP32
HTU21D Temperature and Humidity Sensor Module - ESP8266
HTU21D Temperature and Humidity Sensor Module - STM32
HTU21D Temperature and Humidity Sensor Module - Raspberry Pi Pico
📄 File: htu21d_temperature_and_humidity_sensor_module_-_arduino_uno.inoArduino Uno
651 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for Arduino Uno: A4=SDA, A5=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_arduino_nano.inoArduino Nano
652 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for Arduino Nano: A4=SDA, A5=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_arduino_mega.inoArduino Mega
654 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for Arduino Mega: D20=SDA, D21=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_esp32.inoESP32
653 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for ESP32: GPIO21=SDA, GPIO22=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_esp8266.inoESP8266
661 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for ESP8266: D2(GPIO4)=SDA, D1(GPIO5)=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_stm32.inoSTM32
668 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for STM32: PB7=SDA, PB6=SCL (Blue Pill / F103C8). VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
📄 File: htu21d_temperature_and_humidity_sensor_module_-_raspberry_pi_pico.inoRaspberry Pi Pico
663 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// I2C wiring for Raspberry Pi Pico: GPIO4=SDA, GPIO5=SCL. VCC->3.3V or 5V per module label, GND->GND.
6#include <Wire.h>
7#include <Adafruit_HTU21DF.h>
8
9Adafruit_HTU21DF htu = Adafruit_HTU21DF();
10
11void setup() {
12 Serial.begin(115200);
13 Wire.begin();
14 if (!htu.begin()) {
15 Serial.println("HTU21D not found - check wiring!");
16 while (1) delay(10);
17 }
18}
19
20void loop() {
21 float temp = htu.readTemperature();
22 float rh = htu.readHumidity();
23
24 Serial.print("Temp: "); Serial.print(temp); Serial.print(" C ");
25 Serial.print("Humidity: "); Serial.print(rh); Serial.println(" %");
26
27 delay(1000);
28}
I2C temperature + humidity sensor.

نظرة عامة ومواصفات المنتج — بالعربية

HTU21D Temperature and Humidity Sensor Module متوفر الآن في متجر إكوسترا للإلكترونيات، ضمن قسم Sensors، بسعر 195,00 EGP. كود المنتج لدينا: 801. المنتج غير متوفر حالياً — تواصل معنا عبر واتساب لمعرفة موعد توفره القادم.

أهم المواصفات الفنية:

  • الوزن: 1 g

هذا المنتج مناسب لمشاريع الأردوينو (Arduino) و ESP32 و Raspberry Pi، ومشاريع الروبوتات وإنترنت الأشياء والتعليم الهندسي. جميع القطع مفحوصة قبل الشحن.

تصفّح المزيد من Sensors في إكوسترا.

Specification

Specification

WeightWeight10 g
Dimensions5 × 4 × 2 cm

Customer Reviews