Simulating IoT Temperature Data and Exporting it as CSV via Webhook
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Slack.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Bench settings (Edit Fields (Set)): sets 13 fields: sensorCount, readingsPerSensor, intervalMinutes…
- Detect anomalies (Code): runs custom JavaScript code
- Create results table if missing (Data table): create (table)
- Generate labelled sensor readings (Code): runs custom JavaScript code
- Hide labels from detector (Edit Fields (Set)): sets 3 fields: runId, intervalMinutes, readings
- Use webhook detector? (If): checks a condition and branches into true / false
- Send readings to your detector (HTTP Request): calls an HTTP API (POST)
- Run sample detector (Execute Sub-workflow): calls another n8n workflow
- Score detector against labels (Code): runs custom JavaScript code
- Save scores to data table (Data table): insert (row)
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Slack
n8n-nodes-base.slack - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Webhook
n8n-nodes-base.webhook
From the author
This workflow simulates temperature readings from a virtual IoT sensor, aggregates them, and sends the data as a CSV file to a webhook endpoint. It’s ideal for IoT developers, automation engineers, and learners who want to test data ingestion pipelines or…