read the tutorial
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 Lux is a compact battery-powered batteryless LoRaWAN 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

  1. Verify Package Contents: Ensure the sensor, documentation, and accessories are included and undamaged.
  2. 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.
  3. 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

2.1 Setting Up the LoRaWAN Gateway

  1. Log in to the TTN Console: Visit the TTN Console.
  2. Add a Gateway:
    • Navigate to Gateways > Add Gateway.
    • Enter:
      • Gateway EUI (found on the gateway label)
      • Gateway ID (e.g., my lorawan gateway)
      • Frequency Plan for your region (see the Blynk.Console guide)
    • Click Register Gateway.
  3. Configure the Gateway:
    • Follow the manufacturer's instructions to connect the gateway to TTN.
    • Ensure the gateway is online and visible in the TTN Console.
App

Follow TTN’s Gateway setup guide to ensure your gateway is online.

2.2 Creating a New Application in TTN

  1. In the TTN Console, navigate to Applications → Add Application.
  2. Fill in:
    • Application ID: (e.g., miro-insight-environmental-monitoring)
    • Description: (Optional)
  3. Create Application.
App

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

  1. Open the created application and, from the left-hand menu, select Payload Formatters.
Formater
  1. Select the Uplink tab and choose Custom JavaScript Formatter.
  2. 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.

  1. Go to Miromico LoRaWAN Device Credentials Database and get cred for add your dev into TTN.
  2. In the TTN console, select your application (created in step 2.2) and click Register End Device.
  3. Choose Enter end device specifics manually:
    • Frequency plan: for your region (see the table below)
    • LoraWAN version: provide by manufacture.
End dev
  1. Enter:
    • DevEUI - found in sensor label
    • JoinEUI (AppEUI) - provide by manufacture
    • AppKey - provide by manufacture
    • A unique End Device ID
  2. Click Register Device
End dev

2.5 Setting Up MQTT Integration

  1. Open created application in TTN.
  2. Navigate to TTN Integration Settings:
    • In the TTN Console, open your application and select Integrations.
  3. Select MQTT:
    • Click MQTT from the available integration options.
  4. 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.
Key

Step 3: Prepare Blynk side integration

  1. In Blynk Console:
    • Click Use Blueprint.
    • Go to Developer Zone → Integrations → The Things Stack → Add.
  2. Choose the Miro Insight Lux template.
Add intefration
  1. Fill in value copied from step 2.5:
    • MQTT Server (e.g., eu1.cloud.thethings.network:8883)
    • Username
    • Password
  2. Click Connect.
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:

  1. Automatic Device Creation – Recommended As soon as the sensor sends data to TTN, it will automatically appear on the Blynk Cloud.
dev online
  1. Manual Device Creation – If Something Goes Wrong
    • Navigate to DevicesCreate Device, and select the miro insight lux template.
    • In the Info & Metadata tab, enter the TheThingsNetwork Device field using the device name from TTN.
TTN-dev

TTN-dev

TTN-dev

TTN-dev

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

  1. In the Blynk Console, open Automations.
  2. 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

  1. Navigate to the Location section in Blynk.
  2. Enter the address or drag the map pin to the correct location.
Location
  1. Click Save.
  2. In the device's Info & Metadata, assign the saved location.
Location

Location

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.

Next Steps

More pre-built IoT projects

Need an IoT solution for your business?

Contact us for a free consultation with our engineers and IoT business experts