{"id":42403,"date":"2021-06-21T07:00:28","date_gmt":"2021-06-21T05:00:28","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/"},"modified":"2025-05-20T08:29:30","modified_gmt":"2025-05-20T06:29:30","slug":"connecting-esp32-with-dht11-sensor-and-displaying-data","status":"publish","type":"post","link":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/","title":{"rendered":"Connecting ESP32 with DHT11 sensor and displaying data"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"42403\" class=\"elementor elementor-42403 elementor-24807\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-234f5c43 e-flex e-con-boxed e-con e-parent\" data-id=\"234f5c43\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-12878d9 elementor-widget elementor-widget-text-editor\" data-id=\"12878d9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In previous articles, we combined the ESP32 with a simple <b><a href=\"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/\" data-wpel-link=\"internal\">DS18B20 <\/a><\/b>temperature sensor and an <b><a href=\"https:\/\/botland.store\/blog\/sandbox\/esp32-connecting-oled-display\/\" data-wpel-link=\"internal\">OLED display<\/a><\/b>, which also displayed the data received from the sensor. We also created a simple web server that displayed the data from the temperature sensor. In this tutorial, we will use the knowledge gained in the previous articles and create a project that displays data from the DHT11 temperature and humidity sensor on an OLED display and a web page.<\/p><h2>What will you need to create the project?<\/h2><p>In order to complete this connection, we will need an ESP32 module, a DHT11 sensor and an OLED display &#8211; but you have probably figured as much. All necessary components can be found in a specially prepared kit with the ESP32 module.<\/p><p>The full list of components used is below.<\/p><ul><li><b><a href=\"https:\/\/botland.store\/esp32-wifi-and-bt-modules\/8893-esp32-wifi-bt-42-platform-with-module.html\" data-wpel-link=\"internal\">ESP32 module<\/a><\/b><\/li><li><b><a href=\"https:\/\/botland.store\/oled-displays\/8867-oled-blue-graphic-display-13-128x64px-i2c-v2-blue-characters-5903351241182.html\" data-wpel-link=\"internal\">OLED 1.3\u2033 display<\/a><\/b><\/li><li><b><a href=\"https:\/\/botland.com.pl\/czujniki-multifunkcyjne\/9301-czujnik-temperatury-i-wilgotnosci-dht11-60c.html\" data-wpel-link=\"internal\">DHT11 sensor<\/a><\/b><\/li><li><b style=\"background-color: transparent;\"><a href=\"https:\/\/botland.store\/through-hole-resistors-tht\/3973-tht-cf-carbon-resistor-14w-47k-30pcs.html\" data-wpel-link=\"internal\">4.7 k\u03a9 resistor<\/a><\/b><\/li><li><b style=\"background-color: transparent;\"><a href=\"https:\/\/botland.store\/53-breadoards\" data-wpel-link=\"internal\">Contact board<\/a><\/b><\/li><li><b style=\"background-color: transparent;\"><a href=\"https:\/\/botland.store\/various-wires\/1022-connecting-cables-male-male-65pcs.html\" data-wpel-link=\"internal\">Male-to-male connection wires<\/a><\/b><\/li><li><b style=\"background-color: transparent;\"><a href=\"https:\/\/botland.store\/476-usb-20-cables\" data-wpel-link=\"internal\">MicroUSB cable<\/a><\/b><\/li><\/ul><h2>Connecting components to a contact plate<\/h2><p>The OLED display uses the I2C interface for communication and was connected to pins 21 (SDA) and 22 (SCK) of the ESP32 module, while the DHT11 sensor was connected to pin 18 using a 4.7 k\u03a9 resistor. Below is a diagram of how the modules are connected to the ESP32.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-scaled.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"IMG-2228\" data-wpel-link=\"internal\"><br \/><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1024x768.jpg\" sizes=\"(max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1024x768.jpg 1024w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-300x225.jpg 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-768x576.jpg 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1536x1152.jpg 1536w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-2048x1536.jpg 2048w\" alt=\" loading=\" width=\"800\" height=\"600\" \/> <\/a><br \/><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"ESP32_DHT11_OLED_bb\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1024x506.jpg\" sizes=\"(max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1024x506.jpg 1024w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-300x148.jpg 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-768x380.jpg 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb-1536x759.jpg 1536w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/ESP32_DHT11_OLED_bb.jpg 1797w\" alt=\" loading=\" width=\"800\" height=\"395\" \/> <\/a><\/p><h2>Required libraries for OLED and DHT11<\/h2><p>In order to properly operate the display with the SH1106 controller and the DHT11 sensor, you need to install the appropriate libraries in the Arduino IDE environment. The required libraries can be found at the links:<\/p><ul><li><b><a href=\"https:\/\/github.com\/nhatuan84\/esp32-sh1106-oled\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/nhatuan84\/esp32-sh1106-oled<\/a><\/b><\/li><li><b><a href=\"https:\/\/github.com\/adafruit\/Adafruit-GFX-Library\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/adafruit\/Adafruit-GFX-Library<\/a><\/b><\/li><li><b><a href=\"https:\/\/github.com\/adafruit\/DHT-sensor-library\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/adafruit\/DHT-sensor-library<\/a><\/b><\/li><\/ul><p>Additionally, you will need libraries to create an ESP32 server:<\/p><ul><li><a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip<\/a><\/li><li><a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip<\/a><\/li><\/ul><p>Downloaded as a .zip package, install the libraries in the Arduino IDE environment.<\/p><p><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/javaw_6OPBY4h5JF-1.png\" sizes=\"(max-width: 697px) 100vw, 697px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/javaw_6OPBY4h5JF-1.png 697w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/javaw_6OPBY4h5JF-1-300x268.png 300w\" alt=\" loading=\" width=\"697\" height=\"623\" \/><\/p><p>A window will appear where you search for the location of the downloaded packages, then select the .zip library and select the Open button.<\/p><h2>Programming ESP32 module<\/h2><p>After properly connecting the modules to the ESP32 and uploading the libraries for the OLED display, DHT11 and ESP32 server. The following code will display data from the DHT11 sensor on the OLED screen and create a simple web server, also with data from the sensor.<\/p><pre data-line=\"&quot;\"><code>\n\t\t\t\t\t\n\t\t\t\t<\/code><\/pre><p>Once the code has been correctly uploaded to the ESP32 module, the serial monitor will display the IP address of your ESP32 server and the display will show the measurement data from the sensor.<\/p><p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1024x768.jpg\" sizes=\"(max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1024x768.jpg 1024w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-300x225.jpg 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-768x576.jpg 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-1536x1152.jpg 1536w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/IMG-2228-2048x1536.jpg 2048w\" alt=\" loading=\" width=\"800\" height=\"600\" \/><br \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4-1024x555.png\" sizes=\"(max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4-1024x555.png 1024w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4-300x163.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4-768x416.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4-1536x832.png 1536w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/06\/chrome_2VfeVGDwj4.png 1920w\" alt=\" loading=\" width=\"800\" height=\"434\" \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In previous articles, we combined the ESP32 with a simple DS18B20 temperature sensor and an OLED display, which also displayed the data received from the sensor. We also created a simple web server that displayed the data from the temperature sensor. In this tutorial, we will use the knowledge gained in the previous articles and [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":62073,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,341],"tags":[],"class_list":["post-42403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","category-tips"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Connecting ESP32 with DHT11 sensor and displaying data - Botland<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting ESP32 with DHT11 sensor and displaying data - Botland\" \/>\n<meta property=\"og:description\" content=\"In previous articles, we combined the ESP32 with a simple DS18B20 temperature sensor and an OLED display, which also displayed the data received from the sensor. We also created a simple web server that displayed the data from the temperature sensor. In this tutorial, we will use the knowledge gained in the previous articles and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/\" \/>\n<meta property=\"og:site_name\" content=\"Botland\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/Botland\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-21T05:00:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-20T06:29:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1510\" \/>\n\t<meta property=\"og:image:height\" content=\"755\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Oskar Pacelt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oskar Pacelt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/\"},\"author\":{\"name\":\"Oskar Pacelt\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/54e9a88fc0d20263f2d6e9b2f4eace11\"},\"headline\":\"Connecting ESP32 with DHT11 sensor and displaying data\",\"datePublished\":\"2021-06-21T05:00:28+00:00\",\"dateModified\":\"2025-05-20T06:29:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/\"},\"wordCount\":416,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"articleSection\":[\"Electronics\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/\",\"name\":\"Connecting ESP32 with DHT11 sensor and displaying data - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"datePublished\":\"2021-06-21T05:00:28+00:00\",\"dateModified\":\"2025-05-20T06:29:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr3.jpg\",\"width\":1510,\"height\":755},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/connecting-esp32-with-dht11-sensor-and-displaying-data\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.store\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting ESP32 with DHT11 sensor and displaying data\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"name\":\"Botland\",\"description\":\"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland\",\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\",\"name\":\"Botland\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"width\":250,\"height\":57,\"caption\":\"Botland\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/Botland\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/54e9a88fc0d20263f2d6e9b2f4eace11\",\"name\":\"Oskar Pacelt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/Oskar-Pacelt-150x150.png\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/Oskar-Pacelt-150x150.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/Oskar-Pacelt-150x150.png\",\"caption\":\"Oskar Pacelt\"},\"description\":\"Fan dobrej literatury i muzyki. Wierzy, \u017ce udany tekst jest jak list wys\u0142any w przysz\u0142o\u015b\u0107. W \u017cyciu najbardziej interesuje go prawda, pozosta\u0142ych zainteresowa\u0144 zliczy\u0107 nie spos\u00f3b. Kocha p\u0142ywa\u0107.\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/author\\\/oskar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Connecting ESP32 with DHT11 sensor and displaying data - Botland","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/","og_locale":"en_US","og_type":"article","og_title":"Connecting ESP32 with DHT11 sensor and displaying data - Botland","og_description":"In previous articles, we combined the ESP32 with a simple DS18B20 temperature sensor and an OLED display, which also displayed the data received from the sensor. We also created a simple web server that displayed the data from the temperature sensor. In this tutorial, we will use the knowledge gained in the previous articles and [&hellip;]","og_url":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2021-06-21T05:00:28+00:00","article_modified_time":"2025-05-20T06:29:30+00:00","og_image":[{"width":1510,"height":755,"url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","type":"image\/jpeg"}],"author":"Oskar Pacelt","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oskar Pacelt","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#article","isPartOf":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/"},"author":{"name":"Oskar Pacelt","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/54e9a88fc0d20263f2d6e9b2f4eace11"},"headline":"Connecting ESP32 with DHT11 sensor and displaying data","datePublished":"2021-06-21T05:00:28+00:00","dateModified":"2025-05-20T06:29:30+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/"},"wordCount":416,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","articleSection":["Electronics","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/","url":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/","name":"Connecting ESP32 with DHT11 sensor and displaying data - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#primaryimage"},"image":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","datePublished":"2021-06-21T05:00:28+00:00","dateModified":"2025-05-20T06:29:30+00:00","breadcrumb":{"@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#primaryimage","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr3.jpg","width":1510,"height":755},{"@type":"BreadcrumbList","@id":"https:\/\/botland.store\/blog\/connecting-esp32-with-dht11-sensor-and-displaying-data\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.store\/blog\/"},{"@type":"ListItem","position":2,"name":"Connecting ESP32 with DHT11 sensor and displaying data"}]},{"@type":"WebSite","@id":"https:\/\/botland.com.pl\/blog\/#website","url":"https:\/\/botland.com.pl\/blog\/","name":"Botland","description":"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland","publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/botland.com.pl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/botland.com.pl\/blog\/#organization","name":"Botland","url":"https:\/\/botland.com.pl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","width":250,"height":57,"caption":"Botland"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/Botland\/"]},{"@type":"Person","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/54e9a88fc0d20263f2d6e9b2f4eace11","name":"Oskar Pacelt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2020\/09\/Oskar-Pacelt-150x150.png","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2020\/09\/Oskar-Pacelt-150x150.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2020\/09\/Oskar-Pacelt-150x150.png","caption":"Oskar Pacelt"},"description":"Fan dobrej literatury i muzyki. Wierzy, \u017ce udany tekst jest jak list wys\u0142any w przysz\u0142o\u015b\u0107. W \u017cyciu najbardziej interesuje go prawda, pozosta\u0142ych zainteresowa\u0144 zliczy\u0107 nie spos\u00f3b. Kocha p\u0142ywa\u0107.","url":"https:\/\/botland.store\/blog\/author\/oskar\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/comments?post=42403"}],"version-history":[{"count":0,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media\/62073"}],"wp:attachment":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media?parent=42403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/categories?post=42403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/tags?post=42403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}