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/2021366-M5Stack Core 2 ESP32 with DHT11 and DHT22
Sprache: C++
Kopiert!
Dinge, die Sie vielleicht brauchen
-
BanggoodKaufen Sie dies mit einem Rabatt von Banggood.banggood.com
Ressourcen & Referenzen
-
ExternESP32-D0WDQ6-V3 Datenblatt (PDF)espressif.com
-
ExternM5Stack Core2 Dokumentationsseitedocs.m5stack.com
-
ExternM5Stack Core2 Produktseitem5stack-store.myshopify.com
-
Intern
-
InternKaufen Sie dies mit einem Rabatt von Banggood.banggood.com
Dateien📁
Keine Dateien verfügbar.