# How to combine sensor data and add them to influxdb

**URL:** <https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828>\
**Category:** General\
**Created:** [30 April 2020 16:46 UTC](https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828 "2020-04-30T16:46:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelM](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@MichaelM](https://discourse.nodered.org/u/MichaelM)\
**Post date:** [30 April 2020 16:46 UTC](https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828/1 "2020-04-30T16:46:28Z")

</div>

Hi,  
I've spend now a lot of time with google and youtube, but still I've found no solution for a potenitally simple question:  
I'm sendind from an ESP32 MQTT messages. All start with ESP32/... (ESP32/temperature, ESP32/humidity...) and yes for those who know this exapmle in arduino, really basic stuff.  
in NodeRed I'm able to get the sensor data and show them inside the dashboard. So half way done. But Now I would like to add the received sensor data to an influxdb. My idea is to combine the different sensors under one topic like ESP32/#, and send them to influxdb.  
Does somebody have an working example?

Thanks in advance!  
Cheers Michael

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [30 April 2020 17:31 UTC](https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828/2 "2020-04-30T17:31:20Z")

</div>

Did you search the forum ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 April 2020 17:38 UTC](https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828/3 "2020-04-30T17:38:50Z")

</div>

Why do you want to combine them, you can just pass them to influx as they arrive.

---

<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:** [29 June 2020 17:42 UTC](https://discourse.nodered.org/t/how-to-combine-sensor-data-and-add-them-to-influxdb/25828/4 "2020-06-29T17:42:54Z")

</div>

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