# Read DS18B20 Temps MQTT ESP32?

**URL:** <https://discourse.nodered.org/t/read-ds18b20-temps-mqtt-esp32/56275>\
**Category:** General\
**Created:** [7 January 2022 23:59 UTC](https://discourse.nodered.org/t/read-ds18b20-temps-mqtt-esp32/56275 "2022-01-07T23:59:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Choder](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/choder/32/48464_2.png) [@Choder](https://discourse.nodered.org/u/Choder)\
**Post date:** [7 January 2022 23:59 UTC](https://discourse.nodered.org/t/read-ds18b20-temps-mqtt-esp32/56275/1 "2022-01-07T23:59:26Z")

</div>

I am trying to read the temperatures from an ESP32 with tasmota on MQTT. It worked using a nodemcu, but I can't read anything with the ESP32.

This is MQTT string I am getting from the ESP32 with tasmota.

```auto
00:57:58.936 MQT: tele/poolesp32/SENSOR = {"Time":"2022-01-08T00:57:58","DS18B20":{"Id":"3C01F095CECB","Temperature":73.4},"ESP32":{"Temperature":104.0},"TempUnit":"F"}

```

I am using the MQTT in from node red to read it but I get nothing.  
There are 2 temp sensors. The onboard sensor for the ESP32 and the DS18B20 that I have added.

I can see the temps in the tasmota dashboard so I know its working.

Thanks.

![moquito](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd34edfa7ed76183647951d7ec855550c599ca58.jpeg)

![mqtt read](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae5229dbd0cded1b3b8eddd7978b2ccb3d67061e.jpeg)

 ![tasmota temps](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d77a16a16d550b4fe63b551eacc18c68476cbd7.jpeg)

---

<div class="post-metadata">

**Author:** ![Choder](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/choder/32/48464_2.png) [@Choder](https://discourse.nodered.org/u/Choder)\
**Post date:** [8 January 2022 00:04 UTC](https://discourse.nodered.org/t/read-ds18b20-temps-mqtt-esp32/56275/2 "2022-01-08T00:04:13Z")

</div>

I figured it out, I had the wrong topic. I had to set it to read the following tele/poolesp32/SENSOR

Now I see both sensors data.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 January 2022 00:04 UTC](https://discourse.nodered.org/t/read-ds18b20-temps-mqtt-esp32/56275/3 "2022-01-22T00:04:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
