# Wemos DS18b20 string

**URL:** <https://discourse.nodered.org/t/wemos-ds18b20-string/18291>\
**Category:** General\
**Created:** [22 November 2019 15:50 UTC](https://discourse.nodered.org/t/wemos-ds18b20-string/18291 "2019-11-22T15:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeR](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MikeR](https://discourse.nodered.org/u/MikeR)\
**Post date:** [22 November 2019 15:50 UTC](https://discourse.nodered.org/t/wemos-ds18b20-string/18291/1 "2019-11-22T15:50:08Z")

</div>

I was using the above temp sensor with a Raspberry Pi to send the temperature of my fish tank to the dashboard. Now I want to use  
a Wemos running Tasmota to do the same thing. The sensor sends out the following data to debug:

11/22/2019, 10:27:17 AM[node: Test Sensor Raw](http://10.0.0.152:1880/#)tele/Wemos1/SENSOR : msg.payload : string[76]

"{"Time":"2019-11-22T10:27:16","DS18B20":{"Temperature":63.6},"TempUnit":"F"}"

How do I extract the Temperature value (63.6) to send to the dashboard? The Time might be helpful too, but only the (10:27) part of it.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/baqwas/32/106_2.png) [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Post date:** [22 November 2019 16:12 UTC](https://discourse.nodered.org/t/wemos-ds18b20-string/18291/2 "2019-11-22T16:12:12Z")

</div>

Hello MikeR, Welcome!

I am a _newbie_ too and you may soon get more authoritative instructions from the regulars at this forum. All you need to do is the following:

```auto
msg.payload = msg.payload.DS18B20.Temperature;
msg.topic ="any string for good housekeeping";

```

before wiring to a dashboard chart.

Regards.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [22 November 2019 16:42 UTC](https://discourse.nodered.org/t/wemos-ds18b20-string/18291/4 "2019-11-22T16:42:23Z")

</div>

Additionally to the previous answers you may need to set the MQTT in node to output a parsed JSON object.

---

<div class="post-metadata">

**Author:** ![MikeR](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MikeR](https://discourse.nodered.org/u/MikeR)\
**Post date:** [23 November 2019 16:47 UTC](https://discourse.nodered.org/t/wemos-ds18b20-string/18291/5 "2019-11-23T16:47:42Z")

</div>

Well, that works! Thanks......
