# Parse data from AHT1X-0x38

**URL:** <https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275>\
**Category:** General\
**Created:** [23 June 2022 09:42 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275 "2022-06-23T09:42:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferdoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ferdoo/32/63690_2.png) [@ferdoo](https://discourse.nodered.org/u/ferdoo)\
**Post date:** [23 June 2022 09:42 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/1 "2022-06-23T09:42:39Z")

</div>

Hi can please someone help my parse data from AHT1X-0x38. Message is:

```auto
{
	"topic": "tele/tasmota_E9B332/SENSOR",
	"payload": "{\"Time\":\"2022-06-23T10:08:05\",\"AHT1X-0x38\":{\"Temperature\":27.2,\"Humidity\":47.7,\"DewPoint\":15.1},\"TempUnit\":\"C\"}",
	"qos": 0,
	"retain": false,
	"_msgid": "bcebcc7a418e0045"
}

```

i have use this but now this not work  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/728d8de3ea56b0c93afc8eb1d736e384d968688c.png)

problem ist sensor name  
Thanks you wery much.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 June 2022 10:05 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/2 "2022-06-23T10:05:10Z")

</div>

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [23 June 2022 10:12 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/3 "2022-06-23T10:12:50Z")

</div>

because `AHT1X-0x38` has the special minus character in the object property  
you have to access it instead with this alternative syntax

`var c = msg.payload["AHT1X-0x38"].Temperature`

which, as Steve showed, is what you get using the **Copy path** command

---

<div class="post-metadata">

**Author:** ![ferdoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ferdoo/32/63690_2.png) [@ferdoo](https://discourse.nodered.org/u/ferdoo)\
**Post date:** [23 June 2022 10:40 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/4 "2022-06-23T10:40:52Z")

</div>

Thanks you Steve.

- i have forget conversion between json string and json object after this conversion is possible to copy the path.

---

<div class="post-metadata">

**Author:** ![ferdoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ferdoo/32/63690_2.png) [@ferdoo](https://discourse.nodered.org/u/ferdoo)\
**Post date:** [23 June 2022 10:41 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/5 "2022-06-23T10:41:51Z")

</div>

Yes, thanks you.

---

<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:** [7 July 2022 10:42 UTC](https://discourse.nodered.org/t/parse-data-from-aht1x-0x38/64275/6 "2022-07-07T10:42:35Z")

</div>

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