How to

How to Connect Milesight Sensors to TagoIO

How to connect Milesight LoRaWAN sensors to TagoIO: covering network server setup, payload parsing, and real-time dashboard visualization.

TagoIO Team ·
How to Connect Milesight Sensors to TagoIO

Milesight builds high-quality LoRaWAN sensors for smart buildings, environmental monitoring, industrial facilities, and people counting. Connecting them to TagoIO gives you a full application layer: dashboards, alerts, data storage, and automation, without building it from scratch.

What You Need Before You Start

  • A TagoIO account
  • A Milesight LoRaWAN sensor (AM103, EM300-SLD, WS301, EM500, or any other model)
  • Access to a LoRaWAN network server: The Things Network, ChirpStack, or Milesight’s own UC300/UG65 gateway in network server mode
  • The device’s DevEUI, AppEUI, and AppKey from the Milesight label or ToolBox app

Milesight devices are configured using the Milesight ToolBox app or web interface. Make sure your sensor is provisioned and joined to your LoRaWAN network before starting the TagoIO side.

Step 1: Add the Device in TagoIO

Log into TagoIO and go to Devices. Click “Add Device” and search for your Milesight model in the TagoIO device library. TagoIO has native parsers for many Milesight models, including popular sensors in the EM, AM, WS, and EM500 series.

Save the device and copy the generated device token. You will use it in your network server configuration.

Step 2: Connect Your Network Server

The Things Network: Go to your TTN application, open Integrations, and add a Webhook. Set the base URL to TagoIO’s HTTPS endpoint, add your device token as the authorization header, and enable uplink messages.

ChirpStack: Navigate to your ChirpStack application, open Integrations, and add an HTTP integration pointing to TagoIO’s endpoint with the device token header.

Milesight UG65/UG67 Gateway (network server mode): Go to the gateway’s web interface, find the Forwarding section, and configure it to forward uplinks to TagoIO’s endpoint using the HTTP forwarder with your TagoIO device token.

Full details on all supported integration methods are in the TagoIO integration documentation at https://docs.tago.io/docs/tagoio/integrations/

Step 3: Set Up the Payload Parser

Milesight sensors encode their data in binary or hex payloads. If you selected a pre-built Milesight device in Step 1, the parser is already in place. Verify by opening your device in TagoIO and clicking the Payload Parser tab.

For custom device types, Milesight publishes payload decoders for each product on their GitHub repository and in their product documentation. Copy the decoder for your specific model, paste it into TagoIO’s Payload Parser editor, and save. Test by clicking “Run” and pasting a sample payload.

Step 4: Check That Data Is Flowing

Open the Live Inspector on your device page. Trigger the sensor and confirm the packet appears within the expected transmission interval.

If no data arrives, check: incorrect webhook URL, a missing or wrong device token in the authorization header, or the sensor not yet joining the network.

Step 5: Visualize and Act on the Data

Go to Dashboards in TagoIO and create a new dashboard. Use TagoIO’s Actions to trigger email, SMS, or webhook notifications when a variable crosses a threshold: send a ventilation command when CO2 exceeds 1000 ppm, or alert security when an unauthorized door opens.

Common Milesight Use Cases on TagoIO

  • Smart buildings: AM103 CO2, temperature, and humidity monitoring for HVAC optimization
  • People counting: VS121 or VS133 occupancy data with real-time dashboard display
  • Industrial monitoring: EM500 series for soil moisture, pressure, and temperature in harsh environments
  • Leak detection: EM300-SLD water leak sensors with instant alert triggers

Next Steps