Measuring Temperature and Humidity Using an M5Stack Core 2 with DHT11 and DHT22

Measuring Temperature and Humidity Using an M5Stack Core 2 with DHT11 and DHT22

Learn how to measure temperature and humidity with DHT11, DHT22, and DHT21 sensors with an M5Stack Core 2. First, learn how to prepare the Arduino IDE to work with the M5Stack Core 2 ESP32 device. Then, a wiring diagram for the DHT11 and DHT22 with a PCB and bare module with resistor is shown. Actual wiring is shown next for all three modules. Then, the code is fully explained so you know how to customize it. At the end, measuring temperature and humidity is demonstrated using the DHT11 and DHT22. What values can this code show? In the code, where it says `unsigned int unit=3;`, change `unit=0` to `unit=5`. 0=°C (Celsius) 1=°F (Fahrenheit) 2=Humidity 3=°C (Celsius) and Humidity 4=°F (Fahrenheit) and Humidity 5=°C (Celsius) and °F (Fahrenheit) Purchase this with a discount from Banggood. Banggood discount coupon: Code Price: $37.99 Promo Code: BGb80c39 Warehouse: CN Exp: 4/30/2021

Images

M5Stack Core2: DHT11, DHT22
M5Stack Core2: DHT11 DHT22
366-M5Stack Core 2 ESP32 with DHT11 and DHT22
Langue: C++
Copié !

Ce dont vous pourriez avoir besoin

Ressources et références

Fichiers📁

Aucun fichier disponible.