# ADS1115 extract voltage value

**URL:** https://discourse.nodered.org/t/ads1115-extract-voltage-value/50651
**Category:** General
**Created:** [5 September 2021 23:36 UTC](https://discourse.nodered.org/t/ads1115-extract-voltage-value/50651 "2021-09-05T23:36:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RackBoy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rackboy/32/47595_2.png) [@RackBoy](https://discourse.nodered.org/u/RackBoy)
#### Post date: [5 September 2021 23:36 UTC](https://discourse.nodered.org/t/ads1115-extract-voltage-value/50651/1 "2021-09-05T23:36:30Z")

</div>

I've been trying to get the voltage value to show it in a gauge but I can't. I've put the change node but it didn´t work.  
This is what it shows: {"voltage":2.8600872829371013,"channel":["A0-GND"],"I2C":["ADDRESS\_0x48"],"chip":["ADS1115"]}  
Any suggestions?

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [6 September 2021 00:11 UTC](https://discourse.nodered.org/t/ads1115-extract-voltage-value/50651/2 "2021-09-06T00:11:12Z")

</div>

![Untitled 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70aa3ce13d7f3a9d5c9789b49d4b4e67fe16ad7c.jpeg)

```auto
[{"id":"87c0a84ccb933199","type":"inject","z":"1f864543a4395839","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"voltage\":2.8600872829371013,\"channel\":[\"A0-GND\"],\"I2C\":[\"ADDRESS_0x48\"],\"chip\":[\"ADS1115\"]}","payloadType":"str","x":190,"y":140,"wires":[["42bca3cc3855993b"]]},{"id":"42bca3cc3855993b","type":"json","z":"1f864543a4395839","name":"","property":"payload","action":"","pretty":false,"x":330,"y":140,"wires":[["bc3539cc941d8b6d"]]},{"id":"bc3539cc941d8b6d","type":"change","z":"1f864543a4395839","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.voltage","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":140,"wires":[["84a5257e42ce8eb8"]]},{"id":"84a5257e42ce8eb8","type":"ui_gauge","z":"1f864543a4395839","name":"","group":"3a30993b4892ec57","order":0,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":670,"y":140,"wires":[]},{"id":"3a30993b4892ec57","type":"ui_group","name":"demo","tab":"d4663bfd1e521a9f","order":1,"disp":true,"width":"6","collapse":false},{"id":"d4663bfd1e521a9f","type":"ui_tab","name":"demo","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<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: [20 September 2021 00:11 UTC](https://discourse.nodered.org/t/ads1115-extract-voltage-value/50651/3 "2021-09-20T00:11:33Z")

</div>

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