# Collect temperature and humidity from DHT22 via MQTT and store in InfluxDB
This automation workflow enables reliable ingestion of telemetry data from remote IoT sensors into a time-series database for monitoring and analysis. Ideal for building real-time environmental monitoring systems.
## Who it´s for
- IoT engineers collecting data from remote sensors
- Developers of microclimate monitoring systems
- Automation specialists for home and industrial environments
## What the automation does
- Receives JSON messages from a DHT22 sensor on ESP32 via Mosquitto MQTT broker
- Parses the payload and extracts temperature and humidity values
- Formats data into InfluxDB Line Protocol
- Sends data to a specified InfluxDB bucket via HTTP API
- Triggers on each new MQTT message from the sensor
## What´s included
- Ready-to-use n8n workflow
- Logic for handling MQTT triggers and data transformation
- Integrations with Mosquitto MQTT Broker, InfluxDB, and ESP32
- Basic textual guide for setup and adaptation
## Requirements for setup
- Access to a running MQTT broker (Mosquitto)
- InfluxDB instance (local or cloud) with configured bucket and API token
- Remote device (ESP32 with DHT22) publishing data over MQTT
- n8n instance with external connectivity
## Benefits and outcomes
- Reliable, hands-free data collection from remote sensors
- Time-series storage for long-term trend analysis
- Compatibility with visualization tools like Grafana
- Support for testing via simulators (e.g., Wokwi)
- Scalable design: easily extendable to multiple sensors
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet