# WLED Shield ESP32 D1 mini Temperature Sensor Error

**URL:** <https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832>\
**Category:** Issues\
**Created:** [February 4, 2022, 6:20am UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832 "2022-02-04T06:20:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ag-wood](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ag-wood/32/1084_2.png) [@ag-wood](https://wled.discourse.group/u/ag-wood)\
**Post date:** [February 4, 2022, 6:20am UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832/1 "2022-02-04T06:20:24Z")

</div>

Hi - am hoping for a suggestion of what to look at to resolve my Temperature sensor issue. I’m using a Wemos D1 Mini ESP32 running WLED v.0.13.0-b6 “Toki” with the temperature usermod enabled on a v1.5.1 WLED Shield.

TEMPERATURE\_PIN is set to 23 as per the following env definition:

```auto
[env:wemos_shield_esp32_basic]
board = esp32dev
platform = espressif32@3.2
upload_speed = 460800
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32}
  -D LEDPIN=16
  -D RLYPIN=19
  -D BTNPIN=17
  -D UWLED_USE_MY_CONFIG
  -D USERMOD_DALLASTEMPERATURE
  -D TEMPERATURE_PIN=23
lib_deps = ${esp32.lib_deps}
  OneWire@~2.3.5
board_build.partitions = ${esp32.default_partitions}

```

I have defined a similar env for the same shield with a Wemos D1 Mini ESP8266 and it works fine where the ESP32 version shows ‘0 Sensor Error’ in the info section of WLED. Any tips would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [February 5, 2022, 4:41pm UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832/2 "2022-02-05T16:41:48Z")

</div>

Try my bin file from Github maybe it will help.

---

<div class="post-metadata">

**Author:** ![ag-wood](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ag-wood/32/1084_2.png) [@ag-wood](https://wled.discourse.group/u/ag-wood)\
**Post date:** [February 6, 2022, 4:52am UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832/3 "2022-02-06T04:52:37Z")

</div>

Hi @srg74 - thanks for your excellent work with the wemos shield.

yes, I had tried the [esp32\_display\_dallas.bin](https://github.com/srg74/WLED-wemos-shield/blob/master/resources/Firmware/WLED_wemos_shield/v0.13.0-b6/esp32_display_dallas.bin) file but found that it caused the esp32 to become unresponsive after about a minute. I could connect but not do much, even the on/off button stopped working. I observed the same behaviour with the esp8266 in a separate test with esp8266\_display\_dallas.bin. I assumed that this is because I only have the dallas temperature sensor with no display and is why I attempted to build my own configuration.

My own configuration for the esp8266 worked as expected, but the esp32 is misbehaving.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [February 6, 2022, 7:23am UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832/4 "2022-02-06T07:23:58Z")

</div>

Dallas & WLED & ESP32 have problems.  
I am struggling with readings since the beginning. The cause IMO are incorrect timings due to dual core nature of ESP32 and interrupts needed for some features to work.  
You may experimental use bin from @srg74 (which is from my fork) where I tried to slightly mitigate the problem.

---

<div class="post-metadata">

**Author:** ![ag-wood](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ag-wood/32/1084_2.png) [@ag-wood](https://wled.discourse.group/u/ag-wood)\
**Post date:** [February 6, 2022, 10:23am UTC](https://wled.discourse.group/t/wled-shield-esp32-d1-mini-temperature-sensor-error/4832/5 "2022-02-06T10:23:14Z")

</div>

@blazoncek , @srg74 - I seem to have resolved my situation. While testing, I was simply uploading and rebooting the WLED node (i.e. via software) and nothing seemed to be working. While swapping things around tonight, I turned off the power to the wled shield and when it started up again, I was getting readings from the temperature sensor correctly. Thanks for your interest in my problem.
