Skip to content
RenoktaRenokta

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

LoRaWAN guide: building a sensor network end to end

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.

LayerRoleExample
End device (sensor)Measures and sends the reading in a short radio packetTemperature, door, leak, pulse counter, current sensor
GatewayReceives packets from all sensors in range and forwards them to the internetIndoor or outdoor LoRaWAN gateway
Network serverValidates packets, removes duplicates, manages device sessionsEmbedded in the gateway or running in the cloud
Application / IoT platformDecodes, stores and turns data into dashboards, alarms and reportsRenokta 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.

LoRaWANNB-IoTWi-FiBLE
RangeLong (building and campus scale; kilometres in open areas)As far as operator coverageShort (indoors)Very short (metres)
EnergyVery low, years on a batteryLowHighVery low
Data volumeSmall packetsSmall to mediumHighSmall
InfrastructureYour own gateway or an operator networkOperator network, SIM subscriptionExisting wireless networkA nearby receiver or gateway
Typical useScattered sensors, campuses, fields, warehousesSingle remote metersMains-powered devicesLocation, 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

ClassHow it worksEnergyWhere it fits
AListens briefly for commands only after sending dataLowestMost battery-powered sensors
BListens regularly in scheduled time windowsMediumDevices that need scheduled commands
CListens almost continuouslyHigh (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 controlEntirely yours; indoor coverage can be measured and plannedDepends on the operator’s coverage
Cost structureGateway investment, no subscriptionPer-device or per-message fee
Data pathData goes from the site straight to the platformData passes through the operator’s servers
Where it fitsFactories, warehouses, campuses, greenhouses, residential sitesMany 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?

  1. Requirements: What is measured, how many points, how often, and where alarms go.
  2. 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.
  3. 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.
  4. Sensor selection: Models are chosen by measured value, environment (IP rating, temperature range), battery and mounting.
  5. Network registration: Devices are registered on the network server and payload decoders are defined.
  6. Platform setup: Devices are linked to locations; thresholds, alarm channels, dashboards and reports are prepared.
  7. 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

Articles on this topic

Other guides

Let's plan the right solution for you, together.

Request a demo