Clean and log IoT sensor data to InfluxDB (Webhook | Function | HTTP)
Needs changesWhat this workflow does
This workflow has 4 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Config (Edit Fields (Set)): sets or maps fields
- Clean & Transform Data (Function): runs custom JavaScript (legacy Function node)
- HTTP Request: calls an HTTP API (POST)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Clean & Transform Data: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Clean & Transform Data | Code node, mode 'Run Once for All Items' |
Nodes used (4)
- Webhook
n8n-nodes-base.webhook - Function
n8n-nodes-base.function - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest
From the author
🌡 IoT Sensor Data Cleaner + InfluxDB Logger (n8n | Webhook | Function | InfluxDB) This workflow accepts raw sensor data from IoT devices via webhook, applies basic cleaning and transformation logic, and writes the cleaned data to an InfluxDB instance for…