Templates / Simulating IoT Temperature Data and Exporting it as CSV via Webhook

Simulating IoT Temperature Data and Exporting it as CSV via Webhook

Ready for 3.0

by Patrick Siewert ✓ · 1 views · created 2025-10-31 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Bench settings (Edit Fields (Set)): sets 13 fields: sensorCount, readingsPerSensor, intervalMinutes…
  2. Detect anomalies (Code): runs custom JavaScript code
  3. Create results table if missing (Data table): create (table)
  4. Generate labelled sensor readings (Code): runs custom JavaScript code
  5. Hide labels from detector (Edit Fields (Set)): sets 3 fields: runId, intervalMinutes, readings
  6. Use webhook detector? (If): checks a condition and branches into true / false
  7. Send readings to your detector (HTTP Request): calls an HTTP API (POST)
  8. Run sample detector (Execute Sub-workflow): calls another n8n workflow
  9. Score detector against labels (Code): runs custom JavaScript code
  10. Save scores to data table (Data table): insert (row)

…plus 2 more steps. See the full node list below.

Services it uses

Slack

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

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…

Excerpt from Patrick Siewert's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.