{"id":4467,"date":"2025-06-16T07:29:27","date_gmt":"2025-06-16T14:29:27","guid":{"rendered":"https:\/\/www.donluc.com\/?p=4467"},"modified":"2025-06-16T07:29:27","modified_gmt":"2025-06-16T14:29:27","slug":"project-15-environment-temperature-and-humidity-mk31","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=4467","title":{"rendered":"Project #15: Environment &#8211; Temperature and Humidity &#8211; Mk31"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4467-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #DHT11 #ESP32 #Arduino #EEPROM #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02a.jpg\" alt=\"Temperature and Humidity\" width=\"720\" height=\"552\" class=\"alignnone size-full wp-image-4469\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02a.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02a-300x230.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02b.jpg\" alt=\"Temperature and Humidity\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4470\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02b-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02c.jpg\" alt=\"Temperature and Humidity\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4471\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2506Mk02c-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>3.5\u201d 320&#215;480 ESP32 LCD Touch Display<\/strong><\/p>\n<p>This 3.5\u201c display is a high-performance development module integrates the ESP32 WROOM 32E module. It has powerful development capabilities and rich resources, providing great convenience for developers. It is equipped with a 3.5-inch screen with a resolution of 320 x 480 and supports rich color display of up to 262K colors (RGB666), ensuring clear images and bright colors. The module provides a variety of interfaces, including SPI, UART, etc., which are convenient for connecting various peripherals to meet diverse development needs. <\/p>\n<p>In addition, it supports external speakers to play audio, has its own RGB three-color indicator for rich status indication, and is also equipped with a resistive touch screen for convenient human-computer interaction. It uses a standard TYPE-C interface to facilitate program downloads and power supply, and comes with a micro TF card slot for easy expansion of storage space. It supports external lithium batteries, is lightweight and portable, and has a built-in battery charging management circuit to ensure safe battery charging and discharging. We also provide a wealth of sample programs and technical support to help developers get started quickly. It is suitable for smart home, industrial control and maker projects.<\/p>\n<p><strong>Crowtail &#8211; Temperature and Humidity Sensor 2.0<\/strong><\/p>\n<p>This module can help you detect the temperature and humidity of the environment of your house. The module contains a DHT11 temperature and humidity sensor that is a complex sensor with a calibrated digital signal out. It uses digital module acquisition technology and the temperature and humidity sensor technology. The sensor consists of a resistance-type moisture element and an NTC temperature measuring element. Because of the single-wire serial interface, it is easy to use the module.<\/p>\n<p><strong>DL2506Mk02<\/strong><\/p>\n<p>1 x 3.5\u201d 320&#215;480 ESP32 LCD Touch Display<br \/>\n1 x Crowtail &#8211; Temperature and Humidity Sensor 2.0<br \/>\n1 x USB Battery Pack<br \/>\n1 x USB 3.1 Cable A to C<\/p>\n<p><strong>3.5\u201d ESP32 LCD Touch Display<\/strong><\/p>\n<p>DHT &#8211; 25<br \/>\nVIN &#8211; +3.3V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2506Mk02p<\/strong><\/p>\n<p><strong>DL2506Mk02p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/****** Don Luc Electronics \u00a9 ******\r\nSoftware Version Information\r\nProject #15: Environment - Temperature and Humidity - Mk31\r\nDL2506Mk02p.ino\r\nDL2506Mk02\r\n1 x 3.5\u201d 320x480 ESP32 LCD Touch Display\r\n1 x Crowtail - Temperature and Humidity Sensor 2.0\r\n1 x USB Battery Pack\r\n1 x USB 3.1 Cable A to C\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ EEPROM library to read and write EEPROM with unique ID for unit\r\n#include &quot;EEPROM.h&quot;\r\n\/\/ TFT Display\r\n#include &lt;TFT_eSPI.h&gt;\r\n\/\/ SPI\r\n#include &lt;SPI.h&gt;\r\n\/\/ Temperature and Humidity\r\n#include &quot;DHT.h&quot;\r\n\r\n\/\/ TFT Display\r\n\/\/ Invoke custom library with default width and height\r\n\/\/ (320x480)\r\nTFT_eSPI tft = TFT_eSPI();\r\nint xpos =  0;\r\nint ypos = 40;\r\n\r\n\/\/ Temperature and Humidity\r\n\/\/ DHT 11 \r\n#define DHTTYPE DHT11\r\n#define DHTPIN 25\r\nDHT dht(DHTPIN, DHTTYPE);\r\n\/\/ Temperature\r\nfloat t;\r\n\/\/ Humidity\r\nfloat h;\r\n\r\n\/\/ EEPROM Unique ID Information\r\n#define EEPROM_SIZE 64\r\nString uid = &quot;&quot;;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;15-31&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \r\n  \/\/ Temperature and Humidity\r\n  \/\/ isDHT\r\n  isDHT();\r\n\r\n  \/\/ Display Temperature and Humidity\r\n  isDisplayDHT();\r\n\r\n  \/\/ Delay\r\n  delay( 1000 );\r\n\r\n}\r\n<\/pre>\n<p><strong>getDHT.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Temperature and Humidity\r\n\/\/ DHT\r\n\/\/ isDHT\r\nvoid isDHT(){\r\n\r\n  \/\/ Temperature and Humidity\r\n  \/\/ Temperature\r\n  t = dht.readTemperature();\r\n  \/\/ Humidity\r\n  h = dht.readHumidity();\r\n  \r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ getDisplay\r\n\/\/ 3.5\u201d 320x480 ESP32 LCD Touch Display\r\n\/\/ Display UID\r\nvoid isDisplayUID(){\r\n\r\n  \/\/ x and y Coordinate \r\n  xpos =  0;\r\n  ypos = 40;\r\n  \r\n  \/\/ TFT Display\r\n  \/\/ Clear screen to navy background\r\n  tft.fillScreen(TFT_NAVY);\r\n  \r\n  \/\/ Don Luc Electronics\r\n  \/\/ TextSize\r\n  tft.setTextSize(1);\r\n  \/\/ Text Color\r\n  tft.setTextColor(TFT_YELLOW, TFT_BLUE);\r\n  \/\/ Fill Rectangle\r\n  tft.fillRect(0, 0, 350, 30, TFT_BLUE);\r\n  \/\/ Font datum\r\n  tft.setTextDatum(TC_DATUM);\r\n  \/\/ Draw String\r\n  tft.drawString(&quot;Don Luc Electronics&quot;, 160, 2, 4);\r\n\r\n  \/\/ Text Color\r\n  tft.setTextColor(TFT_YELLOW, TFT_BLACK);\r\n  \/\/ Set cursor near top left corner of screen\r\n  tft.setCursor(xpos, ypos);\r\n\r\n  \/\/ TFT Display\r\n  \/\/ TextSize\r\n  tft.setTextSize(2);\r\n  \/\/ Move cursor down a line\r\n  tft.println();\r\n  \r\n  \/\/ Software Version Information\r\n  tft.print(&quot;Version: &quot;);\r\n  tft.println( sver );\r\n  \/\/ Move cursor down a line\r\n  tft.println();\r\n  tft.println();\r\n\r\n  \/\/ EEPROM\r\n  tft.print(&quot;EEPROM: &quot;);\r\n  tft.println( uid );\r\n\r\n}\r\n\/\/ Display Temperature and Humidity\r\nvoid isDisplayDHT(){\r\n\r\n  \/\/ x and y Coordinate \r\n  xpos =  0;\r\n  ypos = 40;\r\n  \r\n  \/\/ TFT Display\r\n  \/\/ Clear screen to navy background\r\n  tft.fillScreen(TFT_NAVY);\r\n  \r\n  \/\/ Don Luc Electronics\r\n  \/\/ TextSize\r\n  tft.setTextSize(1);\r\n  \/\/ Text Color\r\n  tft.setTextColor(TFT_YELLOW, TFT_BLUE);\r\n  \/\/ Fill Rectangle\r\n  tft.fillRect(0, 0, 350, 30, TFT_BLUE);\r\n  \/\/ Font datum\r\n  tft.setTextDatum(TC_DATUM);\r\n  \/\/ Draw String\r\n  tft.drawString(&quot;Don Luc Electronics&quot;, 160, 2, 4);\r\n\r\n  \/\/ Text Color\r\n  tft.setTextColor(TFT_YELLOW, TFT_BLACK);\r\n  \/\/ Set cursor near top left corner of screen\r\n  tft.setCursor(xpos, ypos);\r\n\r\n  \/\/ TFT Display\r\n  \/\/ TextSize\r\n  tft.setTextSize(2);\r\n  \/\/ Move cursor down a line\r\n  tft.println();\r\n\r\n  \/\/ Temperature\r\n  tft.print(&quot;Temperature: &quot;);\r\n  tft.print( t );\r\n  tft.println( &quot; C&quot; );\r\n  tft.println();\r\n\r\n  \/\/ Humidity\r\n  tft.print(&quot;Humidity: &quot;);\r\n  tft.print( h );\r\n  tft.println( &quot; %&quot; );\r\n  \r\n}\r\n<\/pre>\n<p><strong>getEEPROM.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ EEPROM\r\n\/\/ isUID EEPROM Unique ID\r\nvoid isUID() {\r\n  \r\n  \/\/ Is Unit ID\r\n  uid = &quot;&quot;;\r\n  for (int x = 0; x &lt; 7; x++)\r\n  {\r\n    uid = uid + char(EEPROM.read(x));\r\n  }\r\n  \r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup()\r\n{\r\n \r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ EEPROM Size\r\n  EEPROM.begin(EEPROM_SIZE);\r\n  \r\n  \/\/ isUID EEPROM Unique ID\r\n  isUID();\r\n  \r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ TFT Display\r\n  tft.begin();\r\n  \/\/ Rotation\r\n  tft.setRotation(2);\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ Temperature and Humidity\r\n  dht.begin();\r\n\r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ Display UID\r\n  isDisplayUID();\r\n  \r\n  \/\/ Delay 10 Second\r\n  delay( 10000 );\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Electronics, IoT, Teacher, Instructor, R&#038;D and Consulting<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Automation<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Machine Learning<\/li>\n<li>Artificial Intelligence (AI)<\/li>\n<li>RTOS<\/li>\n<li>Sensors, eHealth Sensors, Biosensor, and Biometric<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Consulting<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2024<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/@thesass2063<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<br \/>\n<strong>Patreon:<\/strong> https:\/\/patreon.com\/DonLucElectronics59<br \/>\n<strong>DFRobot:<\/strong> https:\/\/learn.dfrobot.com\/user-10186.html<br \/>\n<strong>Hackster.io:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Elecrow:<\/strong> https:\/\/www.elecrow.com\/share\/sharepj\/center\/no\/760816d385ebb1edc0732fd873bfbf13<br \/>\n<strong>TikTok:<\/strong> https:\/\/www.tiktok.com\/@luc.paquin8<br \/>\n<strong>Twitch:<\/strong> https:\/\/www.twitch.tv\/lucpaquin<br \/>\n<strong>Hackster:<\/strong> https:\/\/www.hackster.io\/luc-paquin<br \/>\n<strong>LinkedIn:<\/strong> https:\/\/www.linkedin.com\/in\/jlucpaquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #DHT11 #ESP32 #Arduino #EEPROM #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; 3.5\u201d 320&#215;480 ESP32 LCD Touch Display This 3.5\u201c display is a high-performance development module integrates the ESP32 WROOM 32E module. It has powerful development capabilities and rich resources, providing great convenience for developers. It &#8230; <a title=\"Project #15: Environment &#8211; Temperature and Humidity &#8211; Mk31\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=4467\" aria-label=\"Read more about Project #15: Environment &#8211; Temperature and Humidity &#8211; Mk31\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106,50,49,38,368,80,59,115,5,138,287,58,82,10],"tags":[6,92,102,4,87,369,19,107,83,85,24,9,84,27,33,389,34,108],"class_list":["post-4467","post","type-post","status-publish","format-standard","hentry","category-environment","category-arduino","category-consultant","category-digitalelectronics","category-elecrow","category-esp32","category-fritzing","category-e-mentor","category-microcontrollers","category-patreon","category-program","category-arduino-programming","category-program-esp32","category-projects","tag-arduino","tag-battery","tag-components","tag-consultant","tag-display","tag-elecrow","tag-electronics","tag-environment","tag-esp32","tag-fritzing","tag-microcontroller","tag-programming","tag-programming-esp32","tag-projects-2","tag-technology","tag-temperature-and-humidity","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4467"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4467\/revisions"}],"predecessor-version":[{"id":4472,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4467\/revisions\/4472"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}