Battery-Free Air Quality Solution for CO2, Temperature, and Humidity
Blueprint is a pre-configured template on the Blynk IoT platform, that will help you create a fully functional project in a few minutes. It already includes mobile and web dashboard UI, working firmware, and a tutorial to help you connect your device to the Blynk IoT platform and control it from the app!
On this page you can review the blueprint to have an idea of the ready project you are going to get. Sign up for a free account on the Blynk IoT platform to try it out.
Miromico Miro Insight - Environmental and Hall Sensor Blueprint Guide
The Miromico miro Insight Luxis a compact battery-powered batterylessLoRaWAN device equipped with a temperature sensor, humidity sensor, and hall sensor. It’s designed for real-time environmental monitoring and magnetic field detection, transmitting data over LoRaWAN networks. This guide provides step-by-step instructions to set up the sensor, register it with The Things Network (TTN), and integrate it with Blynk IoT for data visualization and control.
Step 1: Unpacking and Initial Setup
1.1 Required Components
Miromico Miro Insight Sensor
LoRaWAN Gateway connected to TTN
Activation Magnet (for waking up the device)
1.2 Initial Setup
Verify Package Contents: Ensure the sensor, documentation, and accessories are included and undamaged.
Wake Up the Device:
Hold the magnet near the activation point of the device for a few seconds.
The LED should blink to confirm the device is active.
Check Battery: Pre-installed. No need for manual installation.
Note: Miro Insight devices are preconfigured and activated via magnet instead of a physical power button.
Step 2: Prepare The Things Network (TTN) for integration
Note: To ensure smooth operation, it’s recommended that all devices within a TTN application are of the same sensor type (e.g., miro insight lux). If you’d like > to use different types of sensors, consider creating a separate application for each sensor type. This helps maintain better compatibility and performance.
2.3 Setting Up the application Payload Formatter
Open the created application and, from the left-hand menu, select Payload Formatters.
Select the Uplink tab and choose Custom JavaScript Formatter.
Paste the provided formatter code and click Save Changes.
2.4 Adding the Sensor as an End Device in TTN
Important: Miromico is simple — all settings are preprogrammed unless manually reconfigured via LoRaWAN MAC commands.
In the TTN console, select your application (created in step 2.2) and click Register End Device.
Choose Enter end device specifics manually:
Frequency plan: for your region (see the table below)
LoraWAN version: provide by manufacture.
Enter:
DevEUI - found in sensor label
JoinEUI (AppEUI) - provide by manufacture
AppKey - provide by manufacture
A unique End Device ID
Click Register Device
2.5 Setting Up MQTT Integration
Open created application in TTN.
Navigate to TTN Integration Settings:
In the TTN Console, open your application and select Integrations.
Select MQTT:
Click MQTT from the available integration options.
You’ll need these details to set up the MQTT integration in Blynk:
Server Address
Port
Username
Password: Click Generate new API key and copy the generated key. Copy and keep it secure.
Step 3: Prepare Blynk side integration
In Blynk Console:
Click Use Blueprint.
Go to Developer Zone → Integrations → The Things Stack → Add.
Choose the Miro Insight Lux template.
Fill in value copied from step 2.5:
MQTT Server (e.g., eu1.cloud.thethings.network:8883)
Username
Password
Click Connect.
Step 4: Activating the Sensor
Use the magnet to wake up the sensor and now wait for this sensor connect to gateway.
Step 5: Onboarding the Sensor to Blynk
You can onboard the sensor in two ways:
Automatic Device Creation – Recommended As soon as the sensor sends data to TTN, it will automatically appear on the Blynk Cloud.
Manual Device Creation – If Something Goes Wrong
Navigate to Devices → Create Device, and select the miro insight lux template.
In the Info & Metadata tab, enter the TheThingsNetwork Device field using the device name from TTN.
Step 6: Monitoring and Analyzing Data
The dashboard is preconfigured, providing an intuitive interface for real-time monitoring. Both web and mobile dashboards offer the same functionality.
In this dashboard, you can monitor the door status, air quality, temperature, humidity, CO₂ levels, pressure, light intensity, battery voltage, and view historical data. You can also see how many times the door has opened. Additionally, you can change the reporting interval by selecting or entering your desired value in seconds.
Step 7: Alerts & Automations
In the Blynk Console, open Automations.
Create triggers based on Device State or Sensor Value.
Example: If humidity > 80%, send notification.
Example: If battery voltage < 2.8V, send low battery alert.
Example: If hall sensor detects magnet (value = 1), trigger an event.
Step 8: Adding Location in Blynk
Navigate to the Location section in Blynk.
Enter the address or drag the map pin to the correct location.
Click Save.
In the device's Info & Metadata, assign the saved location.
Step 9: Error Handling and Troubleshooting
9.1 Common Issues
Sensor Not Responding: Check battery orientation and charge. Try a reset.
No Connectivity: Recheck gateway setup and frequency plan.
Missing Data: Update your Payload Formatter in TTN’s Uplink/Downlink settings.