{"id":19151,"date":"2021-04-28T08:50:18","date_gmt":"2021-04-28T06:50:18","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/?p=19151"},"modified":"2023-10-06T12:44:42","modified_gmt":"2023-10-06T10:44:42","slug":"esp32-polaczenie-z-czujnikiem-temperatury-ds18b20","status":"publish","type":"post","link":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/","title":{"rendered":"ESP32 &#8211; po\u0142\u0105czenie z czujnikiem temperatury DS18B20"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Czas czytania:<\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"19151\" class=\"elementor elementor-19151\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a45e5a7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a45e5a7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a360a80\" data-id=\"a360a80\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dab12fb elementor-widget elementor-widget-text-editor\" data-id=\"dab12fb\" 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>Modu\u0142 <b>ESP32 <\/b>zyska\u0142 swoj\u0105 popularno\u015b\u0107 dzi\u0119ki niewielkim rozmiarom, ogromnym mo\u017cliwo\u015bciom, komunikacji bezprzewodowej i niewielkiej cenie. Pozwala stworzy\u0107 nieograniczon\u0105 ilo\u015b\u0107 projekt\u00f3w IoT przy wykorzystaniu r\u00f3\u017cnego rodzaju czujnik\u00f3w i innych element\u00f3w wykonawczych. ESP znajduje zastosowanie r\u00f3wnie\u017c w systemach inteligentnego domu, gdzie widoczny jest jako node. Dzi\u0119ki komunikacji WiFi nie ma potrzeby prowadzenia dodatkowych przewod\u00f3w do centrali, poniewa\u017c dane przesy\u0142ane s\u0105 poprzez sie\u0107 bezprzewodow\u0105. W tym poradniku po\u0142\u0105czymy modu\u0142 ESP32 z popularnym czujnikiem temperatury DS18B20, a dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce internetowej.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-eb3d212 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"eb3d212\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a51aef\" data-id=\"4a51aef\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4eb095d elementor-widget elementor-widget-heading\" data-id=\"4eb095d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Czego b\u0119dziemy potrzebowa\u0107 do wykonania projektu?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-84a3cb0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"84a3cb0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-019b879\" data-id=\"019b879\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-928b722 elementor-widget elementor-widget-text-editor\" data-id=\"928b722\" 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>Z tytu\u0142u \u0142atwo wywnioskowa\u0107, \u017ce do stworzenia projektu b\u0119dziemy potrzebowali&nbsp;<b><a href=\"https:\/\/botland.com.pl\/moduly-wifi\/8893-esp32-wifi-bt-42-platforma-z-modulem-esp-wroom-32-zgodny-z-esp32-devkit.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\">modu\u0142u ESP32<\/a>&nbsp;<\/b>oraz czujnika temperatury&nbsp;<a style=\"font-weight: bold;\" href=\"https:\/\/botland.com.pl\/cyfrowe-czujniki-temperatury\/165-czujnik-temperatury-ds18b20-cyfrowy-1-wire-tht.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\">DS18B20<\/a>. W naszym sklepie mo\u017cna znale\u017a\u0107 gotowy zestaw z przydatnymi czujnikami i modu\u0142ami, kt\u00f3re pozwol\u0105 rozpocz\u0105\u0107 prac\u0119 z ESP32, poszczeg\u00f3lne elementy mo\u017cna r\u00f3wnie\u017c zakupi\u0107 osobno.&nbsp;<\/p>\n<p>Pe\u0142n\u0105 list\u0119 produkt\u00f3w mo\u017cna znale\u017a\u0107 poni\u017cej:<\/p>\n<ul>\n<li><a href=\"https:\/\/botland.com.pl\/moduly-wifi\/8893-esp32-wifi-bt-42-platforma-z-modulem-esp-wroom-32-zgodny-z-esp32-devkit.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>Modu\u0142 ESP32<\/b><\/a><\/li>\n<li><a href=\"https:\/\/botland.com.pl\/cyfrowe-czujniki-temperatury\/165-czujnik-temperatury-ds18b20-cyfrowy-1-wire-tht.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>Czujnik DS18B20<\/b><\/a><\/li>\n<li><a href=\"https:\/\/botland.com.pl\/rezystory-przewlekane\/3973-rezystor-tht-cf-weglowy-14w-47k-30szt.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>Rezystor 4,7 k\u03a9<\/b><\/a><\/li>\n<li><a href=\"https:\/\/botland.com.pl\/53-plytki-stykowe\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>P\u0142ytka stykowa<\/b><\/a><\/li>\n<li><a href=\"https:\/\/botland.com.pl\/przewody-polaczeniowe\/1022-przewody-polaczeniowe-mesko-meskie-65szt.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>Przewody po\u0142\u0105czeniowe m\u0119sko-m\u0119skie<\/b><\/a><\/li>\n<li><a href=\"https:\/\/botland.com.pl\/476-przewody-microusb-20\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\"><b>Przew\u00f3d microUSB<\/b><\/a><\/li>\n<\/ul>\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-58d11ae elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"58d11ae\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c0c12f7\" data-id=\"c0c12f7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-27a5777 elementor-widget elementor-widget-heading\" data-id=\"27a5777\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Pod\u0142\u0105czenie czujnika DS18B20 z ESP32<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b98632b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b98632b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8840642\" data-id=\"8840642\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b50ca10 elementor-widget elementor-widget-text-editor\" data-id=\"b50ca10\" 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>Czujnik mo\u017cna pod\u0142\u0105czy\u0107 do dowolnego pinu cyfrowego ESP32, my pod\u0142\u0105czymy go do pinu <b>D4<\/b>\u00a0modu\u0142u ESP. Mi\u0119dzy pinem cyfrowym czujnika temperatury (\u015brodkowy &#8211; DQ) a zasilaniem nale\u017cy umie\u015bci\u0107 rezystor podci\u0105gaj\u0105cy <b>4,7 k<\/b><span style=\"color: #4f5b62; font-family: Roboto, Arial, sans-serif; font-size: 14px;\"><b>\u03a9<\/b>.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-83e8c83 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"83e8c83\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-f106aa9\" data-id=\"f106aa9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9adc13c elementor-widget elementor-widget-image\" data-id=\"9adc13c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-scaled.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"ESP32_DS18B20_1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNTUsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL0VTUDMyX0RTMThCMjBfMS1zY2FsZWQuanBnIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"518\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-1024x663.jpg\" class=\"attachment-large size-large wp-image-19155\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-1024x663.jpg 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-300x194.jpg 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-768x498.jpg 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-1536x995.jpg 1536w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_1-2048x1327.jpg 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-880599f\" data-id=\"880599f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ed3f02b elementor-widget elementor-widget-image\" data-id=\"ed3f02b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"ESP32_DS18B20_bb\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxOTcsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL0VTUDMyX0RTMThCMjBfYmIucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"519\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb-1024x664.png\" class=\"attachment-large size-large wp-image-19197\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb-1024x664.png 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb-300x195.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb-768x498.png 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/ESP32_DS18B20_bb.png 1310w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-aefa741 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"aefa741\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a81f46\" data-id=\"5a81f46\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1d0bb5d elementor-widget elementor-widget-heading\" data-id=\"1d0bb5d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Przygotowanie Arduino IDE dla modu\u0142u ESP32<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bc9e13f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bc9e13f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dc977af\" data-id=\"dc977af\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7a19843 elementor-widget elementor-widget-text-editor\" data-id=\"7a19843\" 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>Modu\u0142 ESP32 mo\u017cna bez problemu zaprogramowa\u0107 w \u015brodowisku <b><a href=\"https:\/\/botland.com.pl\/234-arduino\" data-wpel-link=\"internal\">Arduino <\/a><\/b>IDE. W tym celu nale\u017cy wgra\u0107 odpowiedni\u0105 paczk\u0119 p\u0142ytek. Aby wgra\u0107 p\u0142ytki ESP32 nale\u017cy otworzy\u0107 \u015brodowisko Arduino IDE, nast\u0119pnie przej\u015b\u0107 do sekcji\u00a0<b>Plik -&gt; Preferencje <\/b>i w polu<b> Dodatkowe adresy URL<\/b> <b>do mened\u017cera p\u0142ytek<\/b> wklei\u0107 link:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2c3cf2f elementor-widget elementor-widget-text-editor\" data-id=\"2c3cf2f\" 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<pre>https:\/\/dl.espressif.com\/dl\/package_esp32_index.json<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-713e05f elementor-widget elementor-widget-text-editor\" data-id=\"713e05f\" 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>\u00a0i wcisn\u0105\u0107 przycisk OK.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f6e5b8f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f6e5b8f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e8f0b8d\" data-id=\"e8f0b8d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-14a0ec1 elementor-widget elementor-widget-image\" data-id=\"14a0ec1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/1.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNjUsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcLzEucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"802\" height=\"479\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/1.png\" class=\"attachment-full size-full wp-image-19165\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/1.png 802w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/1-300x179.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/1-768x459.png 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4205192 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4205192\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ddf008\" data-id=\"2ddf008\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-50a8d47 elementor-widget elementor-widget-text-editor\" data-id=\"50a8d47\" 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>Nast\u0119pnym krokiem jest zainstalowanie p\u0142ytek ESP32. Nale\u017cy wej\u015b\u0107 w <b>Narz\u0119dzia -&gt; P\u0142ytka -&gt; Mened\u017cer p\u0142ytek&#8230;<\/b> i w polu wpisa\u0107 &#8220;ESP32&#8221; i wcisn\u0105\u0107 przycisk Instaluj.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7ff0f60 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7ff0f60\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-987cff6\" data-id=\"987cff6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-40a6914 elementor-widget elementor-widget-image\" data-id=\"40a6914\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"2\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNjYsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcLzIucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"443\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2.png\" class=\"attachment-full size-full wp-image-19166\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2.png 786w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-300x169.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-768x433.png 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-40d740c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"40d740c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7401522\" data-id=\"7401522\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b1fd470 elementor-widget elementor-widget-text-editor\" data-id=\"b1fd470\" 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>Czasem mo\u017ce zdarzy\u0107 si\u0119, \u017ce w systemie b\u0119dzie brakowa\u0107 sterownik\u00f3w dla uk\u0142adu konwertera USB &#8211; UART\u00a0<a style=\"font-weight: bold;\" href=\"https:\/\/www.silabs.com\/developers\/usb-to-uart-bridge-vcp-drivers\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\">CP210x<\/a>.\u00a0Nale\u017cy je w\u00f3wczas zainstalowa\u0107 r\u0119cznie w mened\u017cerze urz\u0105dze\u0144 systemu Windows.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-895c94c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"895c94c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3b2208a\" data-id=\"3b2208a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9c3f945 elementor-widget elementor-widget-heading\" data-id=\"9c3f945\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Instalacja odpowiednich bibliotek Arduino<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-183d137 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"183d137\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-03c1230\" data-id=\"03c1230\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0d60802 elementor-widget elementor-widget-text-editor\" data-id=\"0d60802\" 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>Kolejnym krokiem jest instalacja odpowiednich bibliotek dla czujnika DS18B20. Czujnik korzysta z biblioteki OneWire by Paul Stoffregen oraz Dallas temperature. Biblioteki nale\u017cy zainstalowa\u0107 wed\u0142ug nast\u0119puj\u0105cych krok\u00f3w:&nbsp;<\/p>\n<p><span style=\"font-family: Roboto; font-size: 1rem;\">1. Otw\u00f3rz \u015brodowisko Arduino IDE i przejd\u017a do <\/span><b style=\"font-family: Roboto; font-size: 1rem;\">Szkic -&gt; Do\u0142\u0105cz bibliotek\u0119 -&gt; Zarz\u0105dzaj bibliotekami<\/b><span style=\"font-family: Roboto; font-size: 1rem;\"> i wpisz &#8220;onewire&#8221;, a nast\u0119pnie wyszukaj biblioteki OneWire by Paul Stroffregen i kliknij instaluj.<\/span><\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-55797ae elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"55797ae\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b1b80c2\" data-id=\"b1b80c2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-12c61be elementor-widget elementor-widget-image\" data-id=\"12c61be\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_tjn28Y8z2Z.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"javaw_tjn28Y8z2Z\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNjcsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL2phdmF3X3RqbjI4WTh6MloucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"443\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_tjn28Y8z2Z.png\" class=\"attachment-full size-full wp-image-19167\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_tjn28Y8z2Z.png 786w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_tjn28Y8z2Z-300x169.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_tjn28Y8z2Z-768x433.png 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-119f9a2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"119f9a2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8f1a59d\" data-id=\"8f1a59d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-435f05b elementor-widget elementor-widget-text-editor\" data-id=\"435f05b\" 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>2. Kolejn\u0105 wymagan\u0105 bibliotek\u0105 jest DallasTemperature by Miles Burton. Wpisz &#8220;dallas&#8221; w wyszukiwark\u0119 i zainstaluj bibliotek\u0119 Dallas.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0c18d2d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0c18d2d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c374e8\" data-id=\"5c374e8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7d30985 elementor-widget elementor-widget-image\" data-id=\"7d30985\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_MbB1dEcUMs.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"javaw_MbB1dEcUMs\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNjgsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL2phdmF3X01iQjFkRWNVTXMucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"443\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_MbB1dEcUMs.png\" class=\"attachment-full size-full wp-image-19168\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_MbB1dEcUMs.png 786w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_MbB1dEcUMs-300x169.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/javaw_MbB1dEcUMs-768x433.png 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6c8a0ed elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6c8a0ed\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c18ebbb\" data-id=\"c18ebbb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7ca7bba elementor-widget elementor-widget-text-editor\" data-id=\"7ca7bba\" 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>Po zainstalowaniu bibliotek, uruchom ponownie \u015brodowisku Arduino IDE.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2371b33 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2371b33\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bc063bc\" data-id=\"bc063bc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e56ceaf elementor-widget elementor-widget-heading\" data-id=\"e56ceaf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programowanie modu\u0142u ESP32<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4fae3e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4fae3e2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fbff42a\" data-id=\"fbff42a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-acc0e83 elementor-widget elementor-widget-text-editor\" data-id=\"acc0e83\" 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>Po zainstalowaniu wszystkich niezb\u0119dnych bibliotek mo\u017cesz zaprogramowa\u0107 swoje ESP32. Poni\u017cszy kod pozwala na proste odczytanie warto\u015bci temperatury i wy\u015bwietlenie ich w monitorze szeregowym Arduino IDE.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6206986 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6206986\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ca34ace\" data-id=\"ca34ace\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-eec74b1 elementor-widget elementor-widget-code-highlight\" data-id=\"eec74b1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-csharp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-csharp\">\n\t\t\t\t\t<xmp>\/\/Do\u0142\u0105czamy biblioteki OneWire i DallasTemperature\r\n#include <OneWire.h>\r\n#include <DallasTemperature.h>\r\n\r\n\/\/Wybieramy pin, do kt\u00f3rego pod\u0142\u0105czony zosta\u0142 czujnik temperatury\r\nconst int oneWireBus = 4;\r\n\r\n\/\/Komunikujemy, \u017ce b\u0119dziemy korzysa\u0107 z interfejsu OneWire\r\nOneWire oneWire(oneWireBus);\r\n\/\/Komunikujemy, \u017ce czujnik b\u0119dzie wykorzystywa\u0142 interfejs OneWire\r\nDallasTemperature sensors (&oneWire);\r\nvoid setup() {\r\n  \/\/Ustawiamy pr\u0119dko\u015b\u0107 dla monitora szeregowego\r\n  Serial.begin(115200);\r\n  sensors.begin();\r\n}\r\n\r\nvoid loop() {\r\n  \/\/Odczyt temperatury\r\n  sensors.requestTemperatures();\r\n  \/\/Odczyt w stopniach celsjusza\r\n  float temperatureC = sensors.getTempCByIndex(0);\r\n  \/\/Odczyt w stopniach Farenheita\r\n  float temperatureF = sensors.getTempFByIndex(0);\r\n  \/\/Wypisanie danych do monitora szeregowego\r\n  Serial.print(\"Zmierzona temperatura: \");\r\n  Serial.print(temperatureC);\r\n  Serial.println(\"\u00b0C\");\r\n  Serial.print(\"Zmierzona temperatura: \");\r\n  Serial.print(temperatureF);\r\n  Serial.println(\"\u00b0F\");\r\n  \/\/Odczyt temperatury co 5 sekund\r\n  delay(5000);\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2d8fac5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2d8fac5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8fe131d\" data-id=\"8fe131d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-29b4ed1 elementor-widget elementor-widget-text-editor\" data-id=\"29b4ed1\" 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>Kod mo\u017cna skopiowa\u0107 i wklei\u0107 w \u015brodowisko Arduino IDE. Przed wgraniem kodu nale\u017cy wybra\u0107 p\u0142ytk\u0119 <b>DOIT ESP32 DEVKIT V1<\/b> oraz odpowiedni port szeregowy. Nast\u0119pnie wciskamy przycisk Wgraj:<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b8dbf23 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b8dbf23\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-21d6996\" data-id=\"21d6996\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3224f35 elementor-widget elementor-widget-image\" data-id=\"3224f35\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"682\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/04\/javaw_kqcj0qjgfj.png\" class=\"attachment-large size-large wp-image-19542\" alt=\"\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/04\/javaw_kqcj0qjgfj.png 917w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/04\/javaw_kqcj0qjgfj-300x256.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/04\/javaw_kqcj0qjgfj-768x655.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9eb49e1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9eb49e1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-353495d\" data-id=\"353495d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-72d8d7b elementor-widget elementor-widget-text-editor\" data-id=\"72d8d7b\" 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>Po poprawnym wgraniu kodu na p\u0142ytk\u0119 wciskamy przycisk monitora szeregowego w celu podgl\u0105du wynik\u00f3w pomiaru temperatury:<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-679ea24 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"679ea24\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-beb1735\" data-id=\"beb1735\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3901f7c elementor-widget elementor-widget-image\" data-id=\"3901f7c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"32\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-1.png\" class=\"attachment-full size-full wp-image-19170\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-1.png 915w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-1-300x10.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/2-1-768x27.png 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/>\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-10a2f11 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"10a2f11\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bab7b09\" data-id=\"bab7b09\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-81e1c1a elementor-widget elementor-widget-text-editor\" data-id=\"81e1c1a\" 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>W monitorze szeregowym powinien ukaza\u0107 si\u0119 rezultat pomiar\u00f3w. Pomiar dokonywany b\u0119dzie co 5 sekund (5000 ms).<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-47529cf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"47529cf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25e2e5c\" data-id=\"25e2e5c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3bb0e4b elementor-widget elementor-widget-image\" data-id=\"3bb0e4b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/3.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"3\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTkxNzEsInVybCI6Imh0dHBzOlwvXC9ib3RsYW5kLmNvbS5wbFwvYmxvZ1wvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcLzMucG5nIn0%3D\" data-wpel-link=\"internal\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"459\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/3.png\" class=\"attachment-full size-full wp-image-19171\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/3.png 973w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/3-300x142.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/3-768x362.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5e11323 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5e11323\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3ebf4dc\" data-id=\"3ebf4dc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8882a9d elementor-widget elementor-widget-heading\" data-id=\"8882a9d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Odczyt temperatury z wykorzystaniem serwera Web<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3b28245 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3b28245\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11bd94d\" data-id=\"11bd94d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-761542b elementor-widget elementor-widget-text-editor\" data-id=\"761542b\" 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>Modu\u0142 ESP32 wyposa\u017cony zosta\u0142 w uk\u0142ad WiFi, dzi\u0119ki czemu temperatur\u0119 mo\u017cna odczyta\u0107 zdalnie za pomoc\u0105 przegl\u0105darki internetowej. W tym celu nale\u017cy zainstalowa\u0107 dodatkow\u0105 bibliotek\u0119: ESPAsyncWebServer, kt\u00f3ra pozwala w \u0142atwy spos\u00f3b stworzy\u0107 serwer webowy.\u00a0<\/p><ol><li>Pobierz bibliotek\u0119\u00a0<a href=\"https:\/\/github.com\/me-no-dev\/ESPAsyncWebServer\/archive\/master.zip\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"><b>ESPAsyncWebServer<\/b><\/a>.<\/li><li>Wgraj bibliotek\u0119 wchodz\u0105c w Szkic -&gt; Do\u0142\u0105cz bibliotek\u0119 -&gt; Do\u0142\u0105cz bibliotek\u0119 .ZIP i wyszukaj pobran\u0105 paczk\u0119 ZIP. Nast\u0119pnie wci\u015bnij przycisk Open.<\/li><\/ol><div><p><span style=\"font-family: Roboto;\">Kolejn\u0105 wymagan\u0105 bibliotek\u0105 jest Async TCP Library. Zainstaluj bibliotek\u0119 wed\u0142ug poni\u017cszych krok\u00f3w:<\/span><\/p><ol><li><span style=\"font-family: Roboto;\">Pobierz bibliotek\u0119<\/span><a href=\"https:\/\/github.com\/me-no-dev\/AsyncTCP\/archive\/master.zip\" target=\"_blank\" rel=\"noopener nofollow external noreferrer\" data-wpel-link=\"external\"> <b>Async TCP<\/b><\/a>.<\/li><li>Wgraj bibliotek\u0119 wchodz\u0105c w Szkic -&gt; Do\u0142\u0105cz bibliotek\u0119 -&gt; Do\u0142\u0105cz bibliotek\u0119 .ZIP i wyszukaj pobran\u0105 paczk\u0119 ZIP. Nast\u0119pnie wci\u015bnij przycisk Open.<\/li><\/ol><\/div>\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9dd05c0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9dd05c0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d7303f1\" data-id=\"d7303f1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b19521f elementor-widget elementor-widget-heading\" data-id=\"b19521f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Kod dla DS18B20 Async Web Server<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2515788 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2515788\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c1dec0a\" data-id=\"c1dec0a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9aa34af elementor-widget elementor-widget-text-editor\" data-id=\"9aa34af\" 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>Otw\u00f3rz \u015brodowisko Arduino IDE i wklej poni\u017cszy kod. W kodzie nale\u017cy poda\u0107 SSID domowego routera WiFi oraz has\u0142o.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-454c6d8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"454c6d8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0745a30\" data-id=\"0745a30\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1bd72ab elementor-widget elementor-widget-code-highlight\" data-id=\"1bd72ab\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-csharp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-csharp\">\n\t\t\t\t\t<xmp>#ifdef ESP32\r\n  #include <WiFi.h>\r\n  #include <ESPAsyncWebServer.h>\r\n#else\r\n  #include <Arduino.h>\r\n  #include <ESP8266WiFi.h>\r\n  #include <Hash.h>\r\n  #include <ESPAsyncTCP.h>\r\n  #include <ESPAsyncWebServer.h>\r\n#endif\r\n#include <OneWire.h>\r\n#include <DallasTemperature.h>\r\n\r\n\/\/ Pin, do kt\u00f3rego pod\u0142\u0105czony jest DS18B20\r\n#define ONE_WIRE_BUS 4\r\n\r\n\/\/ Konfigurowanie instancji OneWire do komunikacji z dowolnymi urz\u0105dzeniami OneWire\r\nOneWire oneWire(ONE_WIRE_BUS);\r\n\r\n\/\/ Przekazanie referencji OneWire do czujnika temperatury Dallas\r\nDallasTemperature sensors(&oneWire);\r\n\r\n\/\/ Zamienie\u0144 na w\u0142asne dane WiFi\r\nconst char* ssid = \"TUTAJ_PODAJ_SWOJE_SSID\";\r\nconst char* password = \"TUTAJ_PODAJ_SWOJE_HAS\u0141O\";\r\n\r\n\/\/ Stworzenie obiektu AsyncWebServer na porcie 80\r\nAsyncWebServer server(80);\r\n\r\nString readDSTemperatureC() {\r\n  \/\/ Wywo\u0142anie sensors.requestTemperatures() aby wys\u0142a\u0107 odczytan\u0105 temperatur\u0119 do wszystkich urz\u0105dze\u0144 na magistrali\r\n  sensors.requestTemperatures(); \r\n  float tempC = sensors.getTempCByIndex(0);\r\n\r\n  if(tempC == -127.00) {\r\n    Serial.println(\"B\u0142\u0105d odczytu danych z czujnika DS18B20\");\r\n    return \"--\";\r\n  } else {\r\n    Serial.print(\"Temperatura Celsjusz: \");\r\n    Serial.println(tempC); \r\n  }\r\n  return String(tempC);\r\n}\r\n\r\nString readDSTemperatureF() {\r\n  \/\/ Wywo\u0142anie sensors.requestTemperatures() aby wys\u0142a\u0107 odczytan\u0105 temperatur\u0119 do wszystkich urz\u0105dze\u0144 na magistrali\r\n  sensors.requestTemperatures(); \r\n  float tempF = sensors.getTempFByIndex(0);\r\n\r\n  if(int(tempF) == -196){\r\n    Serial.println(\"B\u0142\u0105d odczytu danych z czujnika DS18B20\");\r\n    return \"--\";\r\n  } else {\r\n    Serial.print(\"Temperatura Fahrenheit: \");\r\n    Serial.println(tempF);\r\n  }\r\n  return String(tempF);\r\n}\r\n\r\n  \/\/ Wygl\u0105d HTML\r\nconst char index_html[] PROGMEM = R\"rawliteral(\r\n<!DOCTYPE HTML><html>\r\n<head>\r\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n  <link rel=\"stylesheet\" href=\"https:\/\/use.fontawesome.com\/releases\/v5.7.2\/css\/all.css\" integrity=\"sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr\" crossorigin=\"anonymous\">\r\n  <style>\r\n    html {\r\n     font-family: Arial;\r\n     display: inline-block;\r\n     margin: 0px auto;\r\n     text-align: center;\r\n    }\r\n    h2 { font-size: 3.0rem; }\r\n    p { font-size: 3.0rem; }\r\n    .units { font-size: 1.5rem; }\r\n    .ds-labels{\r\n      font-size: 1.5rem;\r\n      vertical-align:middle;\r\n      padding-bottom: 15px;\r\n    }\r\n  <\/style>\r\n<\/head>\r\n<body>\r\n  <h2>Serwer ESP DS18B20<\/h2>\r\n  <p>\r\n    <i class=\"fas fa-thermometer-half\" style=\"color:#059e8a;\"><\/i> \r\n    <span class=\"ds-labels\">Temperatura Celsjusz<\/span> \r\n    <span id=\"temperaturec\">%TEMPERATUREC%<\/span>\r\n    <sup class=\"units\">&deg;C<\/sup>\r\n  <\/p>\r\n  <p>\r\n    <i class=\"fas fa-thermometer-half\" style=\"color:#059e8a;\"><\/i> \r\n    <span class=\"ds-labels\">Temperatura Fahrenheit<\/span>\r\n    <span id=\"temperaturef\">%TEMPERATUREF%<\/span>\r\n    <sup class=\"units\">&deg;F<\/sup>\r\n  <\/p>\r\n<\/body>\r\n<script>\r\nsetInterval(function ( ) {\r\n  var xhttp = new XMLHttpRequest();\r\n  xhttp.onreadystatechange = function() {\r\n    if (this.readyState == 4 && this.status == 200) {\r\n      document.getElementById(\"temperaturec\").innerHTML = this.responseText;\r\n    }\r\n  };\r\n  xhttp.open(\"GET\", \"\/temperaturec\", true);\r\n  xhttp.send();\r\n}, 10000) ;\r\nsetInterval(function ( ) {\r\n  var xhttp = new XMLHttpRequest();\r\n  xhttp.onreadystatechange = function() {\r\n    if (this.readyState == 4 && this.status == 200) {\r\n      document.getElementById(\"temperaturef\").innerHTML = this.responseText;\r\n    }\r\n  };\r\n  xhttp.open(\"GET\", \"\/temperaturef\", true);\r\n  xhttp.send();\r\n}, 10000) ;\r\n<\/script>\r\n<\/html>)rawliteral\";\r\n\r\n\/\/ Zast\u0119puje placeholder warto\u015bciami DHT\r\nString processor(const String& var){\r\n  \/\/Serial.println(var);\r\n  if(var == \"TEMPERATUREC\"){\r\n    return readDSTemperatureC();\r\n  }\r\n  else if(var == \"TEMPERATUREF\"){\r\n    return readDSTemperatureF();\r\n  }\r\n  return String();\r\n}\r\n\r\nvoid setup(){\r\n  \/\/ Port szeregowy do debugowania\r\n  Serial.begin(115200);\r\n  Serial.println();\r\n  \r\n  \/\/ Start biblioteki DS18B20\r\n  sensors.begin();\r\n  \r\n  \/\/ \u0141\u0105czenie z WiFi\r\n  WiFi.begin(ssid, password);\r\n  Serial.println(\"\u0142\u0105czenie z WiFi\");\r\n  while (WiFi.status() != WL_CONNECTED) {\r\n    delay(500);\r\n    Serial.print(\".\");\r\n  }\r\n  Serial.println();\r\n  \r\n  \/\/ Wy\u015bwietlanie lokalnego adresu IP ESP\r\n  Serial.println(WiFi.localIP());\r\n\r\n  \/\/ Przekierowanie do strony root \/ web\r\n  server.on(\"\/\", HTTP_GET, [](AsyncWebServerRequest *request){\r\n    request->send_P(200, \"text\/html\", index_html, processor);\r\n  });\r\n  server.on(\"\/temperaturec\", HTTP_GET, [](AsyncWebServerRequest *request){\r\n    request->send_P(200, \"text\/plain\", readDSTemperatureC().c_str());\r\n  });\r\n  server.on(\"\/temperaturef\", HTTP_GET, [](AsyncWebServerRequest *request){\r\n    request->send_P(200, \"text\/plain\", readDSTemperatureF().c_str());\r\n  });\r\n  \/\/ Start server\r\n  server.begin();\r\n}\r\n \r\nvoid loop(){\r\n  \r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c110434 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c110434\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a27d73a\" data-id=\"a27d73a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d674ab6 elementor-widget elementor-widget-text-editor\" data-id=\"d674ab6\" 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>Po wgraniu kodu w monitorze szeregowym powinien ukaza\u0107 si\u0119 adres IP modu\u0142u ESP32, np. 192.168.1.108. Adres nale\u017cy wklei\u0107 w przegl\u0105dark\u0119 internetow\u0105, na kt\u00f3rej uka\u017c\u0105 si\u0119 rezultaty pomiar\u00f3w z czujnika temperatury DS18B20.<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2ffa5ab elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2ffa5ab\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d91e504\" data-id=\"d91e504\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f31ff20 elementor-widget elementor-widget-image\" data-id=\"f31ff20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"378\" src=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1.png\" class=\"attachment-full size-full wp-image-19173\" alt=\"Tutorial pod\u0142\u0105czenia czujnika temperatury DS18B20 z ESP32\" srcset=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1.png 1920w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1-300x59.png 300w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1-1024x202.png 1024w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1-768x151.png 768w, https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2021\/03\/pl-1-1536x302.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2f5c5f2 elementor-widget elementor-widget-text-editor\" data-id=\"2f5c5f2\" 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>I gotowe!<\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b1891ea elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b1891ea\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7566c3d\" data-id=\"7566c3d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cb95701 elementor-widget elementor-widget-text-editor\" data-id=\"cb95701\" 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><b>Wi\u0119cej artyku\u0142\u00f3w o ESP32 ju\u017c wkr\u00f3tce &#8211; zagl\u0105dajcie do nas na 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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3f53210 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3f53210\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-97fc30b\" data-id=\"97fc30b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0460365 elementor-widget elementor-widget-text-editor\" data-id=\"0460365\" 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<div id=\"k-faq-accord\">\n<h2>ESP32 po\u0142\u0105czenie z czujnikiem temperatury &#8211; FAQ<\/h2>\n<div class=\"tabs\">\n<div class=\"tab\">\n\n<input id=\"chck1\" type=\"checkbox\" \/>\n<h3><label class=\"tab-label\" for=\"chck1\">ESP32 &#8211; Co to jest?<\/label><\/h3>\n<div class=\"tab-content\">\n<div>\n\n<a href=\"https:\/\/botland.com.pl\/1322-moduly-wifi-i-bt-esp32\" data-wpel-link=\"internal\">ESP32<\/a> to niezwykle popularny uk\u0142ad umo\u017cliwiaj\u0105cy budow\u0119 urz\u0105dze\u0144 komunikuj\u0105cych si\u0119 bezprzewodowo za po\u015brednictwem Bluetooth (BLE 4.2) lub WiFi (802.11 b\/g\/n). ESP32 jest bezpo\u015brednim nast\u0119pc\u0105 modu\u0142u ESP8266. Nowa wersja jest wyposa\u017cona w zdecydowanie wydajniejszy mikrokontroler. W praktyce oznacza to szersze zastosowanie zw\u0142aszcza w obr\u0119bie internetu rzeczy (z ang. IoT). Modu\u0142 jest wyposa\u017cony w wysokowydajny i energooszcz\u0119dny procesor Dual Core Tensilica LX6, kt\u00f3rego taktowanie wynosi 240 MHz. Ponadto modu\u0142 ma wbudowany czujnik Halla, czujnik dotyku oraz interfejsy komunikacyjne 12S i CAN.\n\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tab\">\n\n<input id=\"chck2\" type=\"checkbox\" \/>\n<h3><label class=\"tab-label\" for=\"chck2\">ESP32 &#8211; Jakie projekty na pocz\u0105tek?<\/label><\/h3>\n<div class=\"tab-content\">\n<div>\n\nModu\u0142 <a href=\"https:\/\/botland.com.pl\/1322-moduly-wifi-i-bt-esp32\" data-wpel-link=\"internal\">ESP32<\/a> umo\u017cliwia tworzenie urz\u0105dze\u0144, kt\u00f3re komunikuj\u0105 si\u0119 bezprzewodowo za po\u015brednictwem WiFi lub Bluetooth. Dzi\u0119ki modu\u0142owi ESP32 mo\u017cna samodzielnie wykona\u0107 szereg interesuj\u0105cych i praktycznych projekt\u00f3w, takich jak stacje pogodowe. Kolejnym zastosowaniem ESP32 jest prosty serwer WWW.\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Niewielkie rozmiary, ogromne mo\u017cliwo\u015bci komunikacji i przyst\u0119pna cena. W tym poradniku po\u0142\u0105czymy modu\u0142 ESP32 z popularnym czujnikiem temperatury DS18B20, a dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.<\/p>\n","protected":false},"author":5,"featured_media":61681,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7,179],"tags":[],"class_list":["post-19151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elektronika","category-kompendium"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland<\/title>\n<meta name=\"description\" content=\"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.\" \/>\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.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland\" \/>\n<meta property=\"og:description\" content=\"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/\" \/>\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=\"2023-10-06T10:44:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.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=\"Grzegorz Galuba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Napisane przez\" \/>\n\t<meta name=\"twitter:data1\" content=\"Grzegorz Galuba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/\"},\"author\":{\"name\":\"Grzegorz Galuba\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/320f225a4bee757f7d030c49aea2a072\"},\"headline\":\"ESP32 &#8211; po\u0142\u0105czenie z czujnikiem temperatury DS18B20\",\"datePublished\":\"2021-04-28T06:50:18+00:00\",\"dateModified\":\"2023-10-06T10:44:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/\"},\"wordCount\":942,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr1.jpg\",\"articleSection\":[\"Elektronika\",\"Kompendium\"],\"inLanguage\":\"pl-PL\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/\",\"name\":\"ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr1.jpg\",\"datePublished\":\"2021-04-28T06:50:18+00:00\",\"dateModified\":\"2023-10-06T10:44:42+00:00\",\"description\":\"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr1.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/new2023-zestaw-esp32_okladka-nr1.jpg\",\"width\":1510,\"height\":755},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ESP32 &#8211; po\u0142\u0105czenie z&nbsp;czujnikiem temperatury DS18B20\"}]},{\"@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\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\",\"name\":\"Botland\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@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\":\"pl-PL\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"contentUrl\":\"https:\\\/\\\/botland.com.pl\\\/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.com.pl\\\/blog\\\/author\\\/grzegorz\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland","description":"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.","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.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/","og_locale":"pl_PL","og_type":"article","og_title":"ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland","og_description":"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.","og_url":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2021-04-28T06:50:18+00:00","article_modified_time":"2023-10-06T10:44:42+00:00","og_image":[{"width":1510,"height":755,"url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.jpg","type":"image\/jpeg"}],"author":"Grzegorz Galuba","twitter_card":"summary_large_image","twitter_misc":{"Napisane przez":"Grzegorz Galuba","Szacowany czas czytania":"15 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#article","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/"},"author":{"name":"Grzegorz Galuba","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/320f225a4bee757f7d030c49aea2a072"},"headline":"ESP32 &#8211; po\u0142\u0105czenie z czujnikiem temperatury DS18B20","datePublished":"2021-04-28T06:50:18+00:00","dateModified":"2023-10-06T10:44:42+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/"},"wordCount":942,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.jpg","articleSection":["Elektronika","Kompendium"],"inLanguage":"pl-PL"},{"@type":"WebPage","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/","url":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/","name":"ESP32 - po\u0142\u0105czenie z czujnikiem temperatury DS18B20 - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#primaryimage"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.jpg","datePublished":"2021-04-28T06:50:18+00:00","dateModified":"2023-10-06T10:44:42+00:00","description":"Poradnik po\u0142\u0105czenia modu\u0142u ESP32 z czujnikiem temperatury DS18B20. Dane z czujnika wy\u015bwietlimy na monitorze szeregowym oraz w przegl\u0105darce.","breadcrumb":{"@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#primaryimage","url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.jpg","contentUrl":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2023\/05\/new2023-zestaw-esp32_okladka-nr1.jpg","width":1510,"height":755},{"@type":"BreadcrumbList","@id":"https:\/\/botland.com.pl\/blog\/esp32-polaczenie-z-czujnikiem-temperatury-ds18b20\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.com.pl\/blog\/"},{"@type":"ListItem","position":2,"name":"ESP32 &#8211; po\u0142\u0105czenie z&nbsp;czujnikiem temperatury DS18B20"}]},{"@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":"pl-PL"},{"@type":"Organization","@id":"https:\/\/botland.com.pl\/blog\/#organization","name":"Botland","url":"https:\/\/botland.com.pl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@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":"pl-PL","@id":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","url":"https:\/\/botland.com.pl\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","contentUrl":"https:\/\/botland.com.pl\/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.com.pl\/blog\/author\/grzegorz\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts\/19151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/comments?post=19151"}],"version-history":[{"count":0,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/posts\/19151\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/media\/61681"}],"wp:attachment":[{"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/media?parent=19151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/categories?post=19151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.com.pl\/blog\/wp-json\/wp\/v2\/tags?post=19151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}