Remote IoT Sensor Monitoring via MQTT and InfluxDB
detail.loadingPreview
Automate the ingestion of remote IoT sensor data (temperature and humidity) from an ESP32 via MQTT into InfluxDB.
About This Workflow
This workflow captures real-time data from a remote ESP32 microcontroller, specifically temperature and humidity readings from a DHT22 sensor. The data is published to a Mosquitto MQTT broker under the topic 'wokwi-weather'. An n8n MQTT trigger listens for these messages. A code node then parses the incoming JSON payload, extracts the temperature and humidity values, and formats them into a string suitable for InfluxDB. Finally, an HTTP Request node sends this formatted data to an InfluxDB instance for storage and analysis.
Key Features
- Real-time Data Capture: Subscribes to MQTT messages from remote sensors.
- Data Transformation: Parses and validates incoming JSON sensor data.
- InfluxDB Integration: Formats data for efficient storage in InfluxDB.
- Scalable Architecture: Utilizes MQTT for decoupled sensor communication.
How To Use
- Configure MQTT Trigger: Set up the
Remote Sensor MQTT Triggernode with your Mosquitto broker details and subscribe to the 'wokwi-weather' topic. - Prepare Data: The
Payload data preparation nodewill automatically parse the JSON message from MQTT. Ensure your ESP32 is sending data in the format{"temperature": value, "humidity": value}. - Configure InfluxDB HTTP Request: Update the
Data ingest to InfluxDB bucketnode with your InfluxDBOrganization ID,bucket name, and APIToken. Ensure the URL correctly points to your InfluxDB instance. - Enable Workflow: Activate the workflow to start receiving and storing sensor data.
Apps Used
Workflow JSON
{
"id": "f7802d94-ca96-4762-b345-2e91ed81aa54",
"name": "Remote IoT Sensor Monitoring via MQTT and InfluxDB",
"nodes": 14,
"category": "IoT",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: f7802d94-ca96...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.