How-to · Intermediate · 3 min read
LoRaWAN Nodes and Gateways
Building a Long-Range Sensor Network
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
LoRaWAN is a network standard on top of LoRa radio. Nodes send small messages to any gateway in range, and the gateway forwards them over the internet to a network server such as The Things Network or ChirpStack. You need a node that supports LoRaWAN, a gateway on the right regional band, and keys registered on the server. Pick the band for your country first.
Key specs at a glance
- Range
- Several km in open areas; less in cities
- Payload
- Small packets, typically tens of bytes
- Bands
- EU868, US915, AS923, IN865 and others; 433 MHz modules also exist
- Chips
- SX1262/SX1276 on nodes; SX1302/SX1303 on gateways
- Join
- OTAA (recommended) or ABP
- Power
- Very low; years on a battery with long sleep
Raw LoRa or LoRaWAN?
Raw LoRa modules (for example SX1278 boards) talk point to point and you write the protocol. LoRaWAN adds addressing, security and a network server, so many nodes can share gateways. If you only need two devices to talk, raw LoRa is simpler; see LoRa SX1278. If you want a sensor network that scales, use LoRaWAN.
Choosing a node
Look for a LoRaWAN-certified or AT-command module that supports your region.
| Node style | Examples in the shop | Good for |
|---|---|---|
| Module with UART and AT commands | EByte E77 / E220 modules, DFRobot Gravity LoRaWAN | Adding LoRaWAN to your own board |
| Development board with MCU | Heltec CubeCell, Elecrow RA-08H boards | Battery nodes, solar, quick prototypes |
| ESP32 + SX1262 boards | Heltec LoRa/Wi-Fi/BLE boards | Wi-Fi and LoRa together, small displays |
| Industrial sensor node | Pre-built soil, level and temperature nodes | Deployed sensors with enclosures |
- Module with UART and AT commands
- Examples in the shop:
- EByte E77 / E220 modules, DFRobot Gravity LoRaWAN
- Good for:
- Adding LoRaWAN to your own board
- Development board with MCU
- Examples in the shop:
- Heltec CubeCell, Elecrow RA-08H boards
- Good for:
- Battery nodes, solar, quick prototypes
- ESP32 + SX1262 boards
- Examples in the shop:
- Heltec LoRa/Wi-Fi/BLE boards
- Good for:
- Wi-Fi and LoRa together, small displays
- Industrial sensor node
- Examples in the shop:
- Pre-built soil, level and temperature nodes
- Good for:
- Deployed sensors with enclosures
Gateways
An eight-channel gateway uses an SX1301, SX1302 or SX1303 concentrator. Concentrator boards (such as mini PCIe or SPI modules) need a host: a Raspberry Pi or a Linux board. Complete gateways with an ESP32 or Ethernet are single or low-channel and suit tests. For a deployed network use an 8-channel gateway with a good outdoor antenna; see RF cables and pigtails. Check the module's band matches your country's rules before powering it.
Joining the network (OTAA)
- 1Create an account on The Things Network or run ChirpStack on your own server.
- 2Register your gateway with its EUI.
- 3Register the device and copy the DevEUI, JoinEUI/AppEUI and AppKey.
- 4Flash the same values and region into the node.
- 5Power the node close to the gateway first; confirm the join message.
- 6Decode the payload in the server so you see readable values, then send it to MQTT or an app; see MQTT.
Range, airtime and antennas
A higher spreading factor increases range but makes each message longer, which uses more battery and more of the shared airtime. Use the lowest spreading factor that gives a reliable link, or enable adaptive data rate. Antenna placement matters more than power: mount the gateway high with a clear view, and keep node antennas vertical and away from metal. Use the link budget calculator for a rough estimate and the antenna length calculator for a quarter-wave whip.
Try it: Link budget fspl calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Ordering a 868 MHz module for use in a 915 MHz region.
- Powering a gateway without an antenna attached.
- Sending data every few seconds, which breaks fair-use airtime limits.
- Using the same device keys on several nodes.
- Leaving a high spreading factor on a node that sits next to the gateway.
Frequently asked questions
Do I need a gateway of my own?
Only if no public gateway covers your site. In many areas one gateway covers a farm or campus.
Is LoRaWAN the same as LoRa?
No. LoRa is the radio. LoRaWAN is the network protocol built on it.
Which frequency band do I need?
Use the band your country allows. India uses IN865. Check local rules and the module's variants.
How often can a node send?
Networks apply fair-use limits, so plan one small message every several minutes, not every second.
Can an ESP32 be a LoRaWAN node?
Yes, with an SX1262 or SX1276 radio and a LoRaWAN library.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 57 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.






