{"id":42263,"date":"2021-04-28T08:50:18","date_gmt":"2021-04-28T06:50:18","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/"},"modified":"2025-05-20T08:32:02","modified_gmt":"2025-05-20T06:32:02","slug":"esp32-connection-with-ds18b20-temperature-sensor","status":"publish","type":"post","link":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/","title":{"rendered":"ESP32 &#8211; connection with DS18B20 temperature sensor"},"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\"> 3<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"42263\" class=\"elementor elementor-42263 elementor-19151\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-68e496b1 e-flex e-con-boxed e-con e-parent\" data-id=\"68e496b1\" 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-45b1bb65 elementor-widget elementor-widget-text-editor\" data-id=\"45b1bb65\" 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>ESP32 module has gained its popularity due to its small size, huge capabilities, wireless communication and light price. It allows you to create unlimited IoT projects using various types of sensors and other actuators. ESP is also used in smart home systems, where it is visible as a node. Thanks to WiFi communication, there is no need to run additional wires to the control panel, as data is sent over the wireless network. In this tutorial, we will connect the ESP32 module to a popular DS18B20 temperature sensor, and display the sensor data on a serial monitor and in a web browser.<\/p><h2>Shopping list<\/h2><p>From the title it is easy to deduce that we will need an <b><a href=\"https:\/\/botland.store\/wi-fi-modules\/8893-esp32-wifi-bt-42-platform-with-module-esp-wroom-32-compatible-with-esp32-devkit.html\" data-wpel-link=\"internal\">ESP32 module<\/a><\/b> and a <b><a href=\"https:\/\/botland.store\/digital-temperature-sensors\/165-temperature-sensor-ds18b20-digital-1-wire-tht.html\" data-wpel-link=\"internal\">DS18B20 temperature sensor<\/a><\/b> to develop the project. In our store you can find a ready-made kit with useful sensors and modules to get started with ESP32, individual components can also be purchased separately.<\/p><p>The full list of products can be found below:<\/p><ul><li><b><a href=\"https:\/\/botland.store\/wi-fi-modules\/8893-esp32-wifi-bt-42-platform-with-module-esp-wroom-32-compatible-with-esp32-devkit.html\" data-wpel-link=\"internal\">ESP32 module<\/a><\/b><\/li><li><b><a href=\"https:\/\/botland.store\/digital-temperature-sensors\/165-temperature-sensor-ds18b20-digital-1-wire-tht.html\" data-wpel-link=\"internal\">DS18B20 sensor<\/a><\/b><\/li><li><b><a href=\"https:\/\/botland.store\/through-hole-resistors-tht\/3973-tht-cf-carbon-resistor-1-4w-47k-30pcs.html\" data-wpel-link=\"internal\">4.7 k\u03a9 resistor<\/a><\/b><\/li><li><b><a href=\"https:\/\/botland.store\/53-breadoards\" data-wpel-link=\"internal\">Contact board<\/a><\/b><\/li><li><b><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><a href=\"https:\/\/botland.store\/476-usb-20-cables\" data-wpel-link=\"internal\">MicroUSB cable<\/a><\/b><\/li><\/ul><h2>Connection of DS18B20 sensor with ESP32<\/h2><p>The sensor can be connected to any ESP32 digital pin. Our chosen connection will lead to pin D4 of the ESP module.\u00a0Place resistor between temperature sensor&#8217;s digital pin (the center one &#8211; DQ) and the power supply.<\/p><p><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp1.png\" sizes=\"(max-width: 732px) 100vw, 732px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp1.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp1-300x195.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp1-640x415.png 640w\" alt=\" width=\" height=\"475\" \/><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp2.png\" sizes=\"(max-width: 732px) 100vw, 732px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp2.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp2-300x195.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/esp2-640x415.png 640w\" alt=\" width=\" height=\"475\" \/><\/p><h2>Preparation of Arduino IDE for ESP32 module<\/h2><p>The ESP32 module can be easily programmed with the <b><a href=\"https:\/\/botland.store\/234-arduino\" data-wpel-link=\"internal\">Arduino <\/a><\/b>IDE environment. To do this, you need to upload the appropriate package. To upload ESP32 boards, open Arduino IDE, then go to File -&gt; Preferences and in the Additional Boards Manager URLs to the board manager field, paste the link:<\/p><pre>https:\/\/dl.espressif.com\/dl\/package_esp32_index.json<\/pre><p>and press the OK button.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"preferences\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences.png\" sizes=\"(max-width: 802px) 100vw, 802px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences.png 802w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences-300x179.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences-768x459.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/preferences-640x382.png 640w\" alt=\" width=\" height=\"479\" \/> <\/a><\/p><p>The next step is to install the ESP32 board. Go to Tools -&gt; Boards -&gt; Boards Manager and in the box type &#8220;ESP32&#8221; and press the Install button.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"boards manager\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager.png\" sizes=\"(max-width: 786px) 100vw, 786px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager.png 786w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager-300x169.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager-768x433.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/boards-manager-640x361.png 640w\" alt=\" width=\" height=\"443\" \/> <\/a><\/p><p>Sometimes the drivers for the CP210x USB to UART converter chip may be missing from your system. You have to install them manually in Windows Device Manager.<\/p><h2>Installing relevant Arduino libraries<\/h2><p>The next step is to install the appropriate libraries for the DS18B20 sensor. The sensor uses the OneWire by Paul Stoffregen and Dallas temperature libraries. The libraries have to be installed according to the following steps:<\/p><p>1) Open the Arduino IDE environment and go to Draft -&gt; Attach Library -&gt; Manage Libraries and type in &#8220;onewire&#8221;, then search for OneWire by Paul Stroffregen libraries and click install.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"onewire\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire.png\" sizes=\"(max-width: 786px) 100vw, 786px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire.png 786w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire-300x169.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire-768x433.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/onewire-640x361.png 640w\" alt=\" width=\" height=\"443\" \/> <\/a><\/p><p>2. The next required library is DallasTemperature by Miles Burton. Type &#8220;dallas&#8221; into search engine and install the Dallas library.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"javaw_Il1av4OrvC\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC.png\" sizes=\"(max-width: 786px) 100vw, 786px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC.png 786w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC-300x169.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC-768x433.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/javaw_Il1av4OrvC-640x361.png 640w\" alt=\" width=\" height=\"443\" \/> <\/a><\/p><p>After installing the libraries, restart the Arduino IDE environment.<\/p><h2>ESP32 programming<\/h2><p>After installing all the necessary libraries, you can program your ESP32. The following code allows you to simply read temperature values and display them in the Arduino IDE serial monitor.<\/p><pre data-line=\"&quot;\"><code>\n\t\t\t\t\t\n\t\t\t\t<\/code><\/pre><p>The code can be copied and pasted into the Arduino IDE environment. Before uploading the code, select the DOIT ESP32 DEVKIT V1 board and the appropriate serial port. Then upload:<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1.png\" sizes=\"(max-width: 917px) 100vw, 917px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1.png 917w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1-300x256.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1-768x655.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/1-640x546.png 640w\" alt=\" width=\" height=\"782\" \/> <\/a><\/p><p>Once the code is uploaded to the board, press the Serial Monitor button to view the temperature measurement results:<\/p><p><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/2.png\" sizes=\"(max-width: 732px) 100vw, 732px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/2.png 914w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/2-300x11.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/2-768x27.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/2-640x22.png 640w\" alt=\" width=\" height=\"26\" \/><\/p><p>Serial monitor should display the measurement result. The measurement will be repeated every 5 seconds (5000 ms).<\/p><h2>Web server temperature reading<\/h2><p>The ESP32 module uses WiFi, so the temperature can be read remotely using a web browser. To do this, you need to install an additional library: ESPAsyncWebServer, which allows to easily create a web server.<\/p><ol><li>Download the <b><a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">ESPAsyncWebServer<\/a><\/b> library.<\/li><li>Upload the library by going to Draft -&gt; Attach Library -&gt; Attach .ZIP Library and search for the downloaded ZIP package. Then press the Open button.<\/li><\/ol><p>Next\u00a0required\u00a0\u00a0library is the Async TCP Library. Install it according to the steps below:<\/p><ol><li>Download the <b><a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\">Async TCP<\/a><\/b> library.<\/li><li>Upload the library by going to Draft -&gt; Attach Library -&gt; Attach .ZIP Library and search for the downloaded ZIP package. Then press the Open button.<\/li><\/ol><h2>Code for DS18B20 Async Web Server<\/h2><p>Open the Arduino IDE and paste the code below. In the code, enter the SSID of your home WiFi router and the password.<\/p><pre data-line=\"&quot;\"><code>\n\t\t\t\t\t\n\t\t\t\t<\/code><\/pre><p>After uploading the code, the serial monitor should display the IP address of the ESP32 module, e.g. 192.168.1.108. Paste the address into a web browser that will display the results of measurements from the DS18B20 temperature sensor.<\/p><p><a href=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"en\" data-wpel-link=\"internal\"><br \/><img decoding=\"async\" src=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en.png\" sizes=\"(max-width: 1917px) 100vw, 1917px\" srcset=\"https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en.png 1917w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en-300x59.png 300w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en-1024x200.png 1024w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en-768x150.png 768w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en-1536x300.png 1536w, https:\/\/botland.store\/blog\/sandbox\/wp-content\/uploads\/2021\/04\/en-640x125.png 640w\" alt=\" width=\" height=\"374\" \/> <\/a><\/p><p><b>All set, ready to go! More ESP32 articles coming soon &#8211; be sure to check us out at Botland Blog.<\/b><\/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>Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.<\/p>\n","protected":false},"author":5,"featured_media":42264,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[340,339,341],"tags":[],"class_list":["post-42263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compendium","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>ESP32 - connection with DS18B20 temperature sensor - Botland<\/title>\n<meta name=\"description\" content=\"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.\" \/>\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\/esp32-connection-with-ds18b20-temperature-sensor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP32 - connection with DS18B20 temperature sensor - Botland\" \/>\n<meta property=\"og:description\" content=\"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/\" \/>\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-04-28T06:50:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-20T06:32:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1510\" \/>\n\t<meta property=\"og:image:height\" content=\"1510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Grzegorz Galuba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Grzegorz Galuba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/\"},\"author\":{\"name\":\"Grzegorz Galuba\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/320f225a4bee757f7d030c49aea2a072\"},\"headline\":\"ESP32 &#8211; connection with DS18B20 temperature sensor\",\"datePublished\":\"2021-04-28T06:50:18+00:00\",\"dateModified\":\"2025-05-20T06:32:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/\"},\"wordCount\":757,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/esp32.jpg\",\"articleSection\":[\"Compendium\",\"Electronics\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/\",\"name\":\"ESP32 - connection with DS18B20 temperature sensor - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/esp32.jpg\",\"datePublished\":\"2021-04-28T06:50:18+00:00\",\"dateModified\":\"2025-05-20T06:32:02+00:00\",\"description\":\"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/esp32.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/esp32.jpg\",\"width\":1510,\"height\":1510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/esp32-connection-with-ds18b20-temperature-sensor\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.store\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP32 &#8211; connection with DS18B20 temperature sensor\"}]},{\"@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\\\/320f225a4bee757f7d030c49aea2a072\",\"name\":\"Grzegorz Galuba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"caption\":\"Grzegorz Galuba\"},\"description\":\"GG nie ma czasu na gadu-gadu - jest zawsze na bie\u017c\u0105co z nowo\u015bciami z oferty, wybiera tylko najlepsze i dba, aby pojawia\u0142y si\u0119 na czas. Jego rozleg\u0142a wiedza o specyfikacjach technicznych produkt\u00f3w to nieocenione wsparcie dla ca\u0142ej ekipy. Do pracy przyje\u017cd\u017ca rowerem i ju\u017c najwy\u017csza pora, aby wszyscy zacz\u0119li bra\u0107 z niego przyk\u0142ad. Oaza spokoju.\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/author\\\/grzegorz\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ESP32 - connection with DS18B20 temperature sensor - Botland","description":"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.","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\/esp32-connection-with-ds18b20-temperature-sensor\/","og_locale":"en_US","og_type":"article","og_title":"ESP32 - connection with DS18B20 temperature sensor - Botland","og_description":"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.","og_url":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2021-04-28T06:50:18+00:00","article_modified_time":"2025-05-20T06:32:02+00:00","og_image":[{"width":1510,"height":1510,"url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg","type":"image\/jpeg"}],"author":"Grzegorz Galuba","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Grzegorz Galuba","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#article","isPartOf":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/"},"author":{"name":"Grzegorz Galuba","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/320f225a4bee757f7d030c49aea2a072"},"headline":"ESP32 &#8211; connection with DS18B20 temperature sensor","datePublished":"2021-04-28T06:50:18+00:00","dateModified":"2025-05-20T06:32:02+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/"},"wordCount":757,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg","articleSection":["Compendium","Electronics","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/","url":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/","name":"ESP32 - connection with DS18B20 temperature sensor - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#primaryimage"},"image":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg","datePublished":"2021-04-28T06:50:18+00:00","dateModified":"2025-05-20T06:32:02+00:00","description":"Small size, great communication capabilities, affordable price. In this tutorial we connect an ESP32 module to DS18B20 temperature sensor and read sensor data both on serial monitor and in a browser.","breadcrumb":{"@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#primaryimage","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/esp32.jpg","width":1510,"height":1510},{"@type":"BreadcrumbList","@id":"https:\/\/botland.store\/blog\/esp32-connection-with-ds18b20-temperature-sensor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.store\/blog\/"},{"@type":"ListItem","position":2,"name":"ESP32 &#8211; connection with DS18B20 temperature sensor"}]},{"@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\/320f225a4bee757f7d030c49aea2a072","name":"Grzegorz Galuba","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","caption":"Grzegorz Galuba"},"description":"GG nie ma czasu na gadu-gadu - jest zawsze na bie\u017c\u0105co z nowo\u015bciami z oferty, wybiera tylko najlepsze i dba, aby pojawia\u0142y si\u0119 na czas. Jego rozleg\u0142a wiedza o specyfikacjach technicznych produkt\u00f3w to nieocenione wsparcie dla ca\u0142ej ekipy. Do pracy przyje\u017cd\u017ca rowerem i ju\u017c najwy\u017csza pora, aby wszyscy zacz\u0119li bra\u0107 z niego przyk\u0142ad. Oaza spokoju.","url":"https:\/\/botland.store\/blog\/author\/grzegorz\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42263","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/comments?post=42263"}],"version-history":[{"count":0,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media\/42264"}],"wp:attachment":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media?parent=42263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/categories?post=42263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/tags?post=42263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}