Configuration of the Process Workflow
This guide provides step-by-step instructions on how to configure Node-RED to process sensor data via MQTT and store it in InfluxDB. The example used is based on group0 from the Node-RED instance running on the Pforzheim University IoT Server via the URL https://iot.hs-pforzheim.de/nodered. If you want to build comparable flows with n8n, review the previous section for an overview of the platform and adapt the MQTT and InfluxDB steps accordingly.
Prerequisites
- Access to the Node-RED instance at iot.hs-pforzheim.de/nodered
- Tinkerforge sensors (e.g., temperature, humidity, barometer, CO2 sensors) attached to the HAT and
tinkerforge_mqttrunning - A connection to an InfluxDB organization for bucket storage
Configuration Process
Follow each step thoughfully to successfully preprocess and transfer data from the Mosquitto MQTT Broker to our InfluxDB bucket.
Log into Node-RED
- Open a web browser and navigate to iot.hs-pforzheim.de/nodered.

- Use the provided credentials to log into the Node-RED dashboard. For development purposes all students use the same account (
admin) to share the same overview.
Once logged in, you should see a workspace where nodes can be arranged and configured.

Access the Flow
- After logging in, navigate to the workspace titled
vwa_group0(as seen in the screenshots). For your own group works, please navigate to your group’s workspace. - The flow consists of several sensor inputs (e.g., temperature, humidity, barometer, CO2) that are processed and then output to an InfluxDB instance.
- Each sensor node captures data from its respective MQTT topic. The nodes for
Temperature Sensor,Humidity Sensor,Barometer Sensor, andCO2 Sensorare connected to two outputs: - One output stores the data in InfluxDB.
- The other output forwards the raw data to the debug panel via
msg.payloadfor monitoring.

Adding MQTT Input Nodes
To replicate the sensor configuration:
- Drag an MQTT input node from the palette (found on the left side under the
commonsection). - Configure the MQTT input node:

- Set the server details (this is already configured for your group).
- Define the topic that matches the sensor’s topic (e.g.,
tinkerforge/callback/temperature_v2_bricklet/Nz7/temperaturefor the image’s temperature data).
- Name the node according to the sensor type (e.g., “Temperature Sensor”).
Storing Data in InfluxDB
- Drag an InfluxDB output node from the palette (found under
storageif not available). - Configure the node:

- Select the connection
HSPF InfluxDB (IoT)details for InfluxDB. - Define the organization to match
VWA - As bucket, select your group’s bucket (schema:
vwa_groupX) as defined before in the configuration of data storage - Ensure the proper format for incoming data is configured (e.g., JSON format for time-series data).
- Select the connection
- Connect the sensor’s MQTT node to the InfluxDB output node.
Debugging the Data
- Add a debug node (found in the palette under the
commonsection) and connect it to the sensor’s MQTT output. - This allows you to view the
msg.payloadin real time to verify the incoming sensor data. - Open the debug panel on the right-hand side to monitor the output.
Deploy the Flow
- After all nodes are configured and connected, click the
Deploybutton (found in the top-right corner of the Node-RED interface). - This will activate your flow, and you should see incoming data from your sensors being processed and output to InfluxDB.

Conclusion
You have now successfully created a new workflow in Node-RED for your group. This flow can be used to subscribe to MQTT topics and process them. In a final step, you store the topics payload to your group’s bucket in InfluxDB. Make sure to replace X with the appropriate group number throughout the creation process of your flow. Furthermore, ensure your subscribed topic is written correctly. If you encounter any issues or need further assistance, feel free to consult the Node-RED Documentation or reach out to your system administrator.
In the next section, we will discover how we can visualise these processed information from our bucket.