LoRaWAN guide: building a sensor network end to end
LoRaWAN is an open wireless network protocol that lets battery-powered sensors send small amounts of data over kilometres with very little energy. It is managed by the LoRa Alliance. Sensors send data to a gateway, the gateway to the internet, and the internet to an IoT platform through a network server. This guide explains how LoRaWAN works, when it is the right choice and how it is deployed on a site.
Last updated: · About 7 min read

What is the difference between LoRa and LoRaWAN?
LoRa (Long Range) is the physical layer technology that defines how the radio signal is modulated; long range and resistance to noise come from this modulation. LoRaWAN is the network protocol that runs on top of LoRa: it defines how devices join the network, how data is encrypted and the roles of gateways and servers.
In short, LoRa is the language of the radio and LoRaWAN the rules of a network that speaks it. Because it is an open standard, sensors, gateways and servers from different manufacturers work together, which avoids lock-in to a single brand.
How does a LoRaWAN network work?
A LoRaWAN network has four layers. Data does not only flow one way; the network server can also send commands and settings to devices when needed.
| Layer | Role | Example |
|---|---|---|
| End device (sensor) | Measures and sends the reading in a short radio packet | Temperature, door, leak, pulse counter, current sensor |
| Gateway | Receives packets from all sensors in range and forwards them to the internet | Indoor or outdoor LoRaWAN gateway |
| Network server | Validates packets, removes duplicates, manages device sessions | Embedded in the gateway or running in the cloud |
| Application / IoT platform | Decodes, stores and turns data into dashboards, alarms and reports | Renokta IoT platform |
Sensors are not tied to a particular gateway: every gateway in range can receive the same packet. This means that if one gateway goes down, others keep carrying the data.
Which frequency does LoRaWAN use in Türkiye?
LoRaWAN deployments in Türkiye commonly use the licence-free EU863-870 band, the EU868 frequency plan. Licence-free spectrum is open to everyone, so devices must respect a duty cycle limit in each sub-band; on most channels this limit is around 1 percent.
The duty cycle limit determines how often a sensor can transmit. This is why LoRaWAN is ideal for small readings sent every few minutes or hours, and not suitable for second-by-second data streams or carrying voice and video.
When buying sensors and gateways, make sure both use the same frequency plan (EU868). A device built for another region (for example US915) will not talk to a gateway in Türkiye.
LoRaWAN vs NB-IoT, Wi-Fi and BLE
Each wireless technology solves a different problem. The right choice depends on range, data volume, power source and who operates the infrastructure.
| LoRaWAN | NB-IoT | Wi-Fi | BLE | |
|---|---|---|---|---|
| Range | Long (building and campus scale; kilometres in open areas) | As far as operator coverage | Short (indoors) | Very short (metres) |
| Energy | Very low, years on a battery | Low | High | Very low |
| Data volume | Small packets | Small to medium | High | Small |
| Infrastructure | Your own gateway or an operator network | Operator network, SIM subscription | Existing wireless network | A nearby receiver or gateway |
| Typical use | Scattered sensors, campuses, fields, warehouses | Single remote meters | Mains-powered devices | Location, proximity, asset tracking |
In practice these technologies complement each other. On the same site, ambient sensors can connect via LoRaWAN, location tags via BLE and a remote meter via NB-IoT, all on one platform.
Device classes: A, B and C
| Class | How it works | Energy | Where it fits |
|---|---|---|---|
| A | Listens briefly for commands only after sending data | Lowest | Most battery-powered sensors |
| B | Listens regularly in scheduled time windows | Medium | Devices that need scheduled commands |
| C | Listens almost continuously | High (usually mains-powered) | Valves, relays, lighting that need instant commands |
Almost all measuring sensors are Class A. Class C with mains power is preferred for devices that must be switched remotely.
What determines range and battery life?
Range figures in manufacturer catalogues are usually for open areas with line of sight. Real range depends on buildings, concrete and metal structures, gateway height and antenna position. That is why coverage is planned from on-site measurements, not catalogues.
- Spreading factor (SF): A higher SF increases range but lengthens airtime and raises energy use. The network chooses a suitable value for each sensor automatically with adaptive data rate (ADR).
- Reporting interval: The setting that affects battery life most; a sensor reporting every 5 minutes drains its battery much faster than the same sensor reporting hourly.
- Ambient temperature: Battery capacity drops inside freezers; batteries suited to the cold and external probes are preferred.
- Obstacles: Metal cabinets, cold room panels and basements weaken the signal.
Sensors send battery status and signal quality (RSSI, SNR) with every packet. Monitoring these on the platform finds devices with low batteries or at the edge of coverage before problems occur.
Is LoRaWAN secure?
LoRaWAN uses two layers of AES-128 encryption. The network session key verifies that a packet belongs to the network and has not been altered; the application session key encrypts the data content end to end. Gateways and the network server carry the packet but cannot read its content.
Devices join the network in one of two ways. OTAA (over-the-air activation) generates new session keys at every join and is the recommended method. ABP (activation by personalisation) writes fixed keys into the device; it is simpler but has no key renewal. During installation, device identifiers and keys (DevEUI, JoinEUI, AppKey) must be stored securely and never shared.
Should you build your own network or use an operator network?
| Private network (your own gateway) | Operator or community network | |
|---|---|---|
| Coverage control | Entirely yours; indoor coverage can be measured and planned | Depends on the operator’s coverage |
| Cost structure | Gateway investment, no subscription | Per-device or per-message fee |
| Data path | Data goes from the site straight to the platform | Data passes through the operator’s servers |
| Where it fits | Factories, warehouses, campuses, greenhouses, residential sites | Many single points spread across a city |
On a single site or campus, a private network is usually more economical and predictable: a few gateways can carry many sensors and no subscription is needed.
How is a LoRaWAN network deployed step by step?
- Requirements: What is measured, how many points, how often, and where alarms go.
- Site survey and coverage test: Signal is measured with a test device at candidate gateway locations; basements, cold rooms and metal structures are checked separately.
- Gateway placement: A high, central position, internet connection (Ethernet, Wi-Fi or 4G) and power (PoE or adapter) are planned; critical areas get redundancy from a second gateway.
- Sensor selection: Models are chosen by measured value, environment (IP rating, temperature range), battery and mounting.
- Network registration: Devices are registered on the network server and payload decoders are defined.
- Platform setup: Devices are linked to locations; thresholds, alarm channels, dashboards and reports are prepared.
- Monitoring: Signal quality, battery and last-seen time are checked regularly; alerts are defined for silent devices.
How does sensor data become meaningful on the platform?
To save battery and bandwidth, LoRaWAN sensors send each reading as a compressed packet of a few bytes. On the platform a decoder specific to the device model turns this packet into meaningful fields such as temperature, humidity, door state or meter value. Manufacturers usually publish these decoders openly.
Decoded data is linked to a location and asset, such as "Warehouse 2, cold room 3, shelf height", so reports read in the business’s own language rather than device IDs. Data can also be passed to building automation, ERP or reporting tools over MQTT or an API.
Common mistakes in LoRaWAN projects
- Planning coverage from catalogue range: sensors in basements, cold rooms and metal structures cannot send data.
- Mounting the gateway low or inside a metal cabinet: range drops sharply.
- Setting the reporting interval more often than needed: battery life shortens and channel load rises.
- Buying devices for the wrong frequency plan: devices outside EU868 cannot join in Türkiye.
- Storing device keys carelessly: devices fail to join when replaced or reinstalled.
- Not monitoring silent devices: a sensor with a dead battery can go unnoticed for months.
What can be monitored with LoRaWAN?
- Energy: Clamp-on current transformers, pulse-output meters, Modbus analyzers read through a LoRaWAN converter
- Water: Meter pulse reading, leaks, pressure and tank level
- Cold chain: Cold room and freezer temperature, door-open alerts
- Buildings: Temperature, humidity, CO₂, occupancy, door and window state
- Agriculture and greenhouses: Soil moisture, conductivity, light, weather stations, irrigation valve control
- Safety: Panic buttons, smoke alerts, flooding
Frequently asked questions
- How many sensors can a LoRaWAN gateway support?
- A single gateway can receive data from hundreds or even thousands of sensors; the real number depends on reporting frequency, packet size and signal conditions. Capacity is planned together with coverage.
- How long does a LoRaWAN sensor battery last?
- Battery life depends on reporting interval, signal quality, ambient temperature and battery type. Manufacturers state lifetimes of years for certain settings; check the real value for your reporting interval with the manufacturer’s calculator or datasheet.
- Does LoRaWAN need the internet?
- Sensors do not need the internet; only the gateway does. If the network server runs inside the gateway, data can also be collected locally and forwarded to the platform when the connection returns.
- Do sensors and gateways from different brands work together?
- Yes. Because LoRaWAN is an open standard, compliant devices on the same frequency plan (EU868 in Türkiye) work together even if they come from different brands.
- Is LoRaWAN suitable for real-time control?
- Partly. Class C devices can receive remote on-off commands, but because of the duty cycle limit and airtime, wired automation should be preferred for control loops that need millisecond response.
- How do you choose between LoRaWAN and NB-IoT?
- If there are many sensors on one site or campus, LoRaWAN with your own gateway is usually more economical. For single points spread across a city or places where no gateway can be installed, NB-IoT over the operator network can be more practical.
Sources
Our solutions

LoRaWAN sensor infrastructure
Builds the LoRaWAN network of gateways, sensors and platform and brings battery-powered sensor data from wide areas into one dashboard.Measured point: Signal strength and device statusDetails
Smart agriculture and greenhouse
Monitors fields and greenhouses with sensors, so you can follow conditions such as irrigation water in one place.Measured point: Irrigation waterDetails
Water consumption monitoring
Monitors water use remotely over LoRaWAN sensors and reports leaks and unusual increases.Measured point: Water consumptionDetails
Articles on this topic
- What is LoRaWAN and why does it suit IoT?LoRaWAN is a network protocol for sensors that need long range at low power and can run for years on a battery. It is ideal for small, infrequent data, not for video or high-speed data.
- LoRaWAN Class A, B and C: which device class to choose?LoRaWAN device classes decide when a device listens. Class A uses the least power, Class B listens on a schedule, and Class C listens almost continuously and needs mains power.
- LoRaWAN security: how do OTAA, ABP and keys work?LoRaWAN security rests on device authentication and two separate AES-128 key layers. The activation method (OTAA or ABP) and how keys are managed shape the result.
- LoRaWAN sensor selection: how to choose by what you measureTo choose a LoRaWAN sensor, start from what you need to measure, then check reporting interval, environment and coverage. A small pilot is the safest way to confirm the choice.
- LoRaWAN gateway installation: placement, antenna, coverageInstall a LoRaWAN gateway as high and as open as possible, away from obstructions, with a suitable antenna and a reliable connection. Real coverage is settled by a pilot measurement, not a theoretical estimate.
- LoRa vs NB-IoT: what is the difference?LoRa/LoRaWAN runs in unlicensed spectrum on gateways you install; NB-IoT uses the mobile operator's cellular network. The difference shows in who owns the network, in coverage and in the cost model.
- BLE or LoRaWAN? Which one to choose for IoTBLE fits short-range, phone-friendly and location-focused work; LoRaWAN fits wide areas and long-lived battery sensors. The choice depends on range, power, data and infrastructure.
- How to choose an IoT platform: criteria and architectureWhen choosing an IoT platform, weigh its architecture, integrations, cloud or on-premises deployment, data ownership and who maintains it. The longest feature list is not always the right choice.
- How is Modbus data moved to a platform? Register maps and MQTTTo turn Modbus data from PLCs, energy analysers and meters into reliable reports, the register map, data type, scaling, polling interval and timestamps must be verified from the start.
Other guides
- Energy monitoring and management guide
- Cold chain and temperature monitoring guide
- Water consumption monitoring and leak detection guide
- LoRaWAN gateway: what it is, how to choose and install one
- Temperature and humidity sensor guide: types, selection and remote monitoring
- Wireless sensors and wireless sensor networks guide
- Energy analyzer and current sensor guide