Block 1 - Sticky Note
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
. Read and store IOT sensor data with the MQTT Trigger and InfluxDB [email protected] This workflow is for users wanting a practical example of how to obtain data from remote IOT systems usi...
n8n-nodes-base.stickynote, n8n-nodes-base.mqtttrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tony Duffy.
Original n8n.io source.
This workflow is for users wanting a practical example of how to obtain data from remote IOT systems using the MQTT protocol in an n8n environment.
The template provides typical n8n node implementation and configuration settings necessary to read and store IOT data.
The workflow reads the temperature and humidity data from a remote IOT system in this case a DHT22 sensor connected to a ESP32 micro controller. The data is parsed into the correct JSON format and then ingested in an InfluxDB data bucket. From there the stored temperature and humidity values can be displayed in real time.
The workflow can be easily modified to read any MQTT driven device data.
The ESP32 controller with the DHT22 sensor are running on a Wokwi simulator. The simulator uses micro python to publish a MQTT "wokwi-weather" topic with the temperature and humidity payloads to an online Mosquitto MQTT broker. The n8n MQTT trigger node subscribes to the topic on the broker and reads the payload values when any changes are published. The code node then prepares the payload for JSON format. The HTTP request node ingests the data in a InfluxDB bucket
Wokwi IOT ESP32 simulator
InfluxDB
You will require access to functioning InfluxDB database to utilise this workflow
Note : You will have to provide the following for the HTTP request node to connect to InfluxDB.
n8n workflow.
When the above is configured the workflow should function correctly.
Thanks to the many who have downloaded this template. Let me know on what you would like to build. Contact me at [email protected]
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Remote IOT sensor monitoring via MQTT and InfluxDB |
|---|---|
| Complexity | intermediate |
| Nodes | 6 |
| Categories | Engineering |
| Author | Tony Duffy |
| Published | 12 May 2025 |
Use the JSON export at /data/workflows/4004/4004.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
. Read and store IOT sensor data with the MQTT Trigger and InfluxDB [email protected] This workflow is for users wanting a practical example of how to obtain data from remote IOT systems usi...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.