6 min read · Automation

Devices inside a building can usually connect with a LAN cable or Wi-Fi right away. Points farther out, such as a pump station, a hilltop water tank or a greenhouse in the middle of a field, have several options, and each one costs differently. Choosing by familiarity or by device price alone often means fixing it later.
Three questions before choosing
- How much data must be sent? A few values every minute, or images from a camera? The volume differs many times over.
- How quickly must you know, and do you need to send commands back to the site?
- Does the mounting point have power all the time, or must it run on a battery or solar?
Comparing the options
This table is an overview to start the conversation. Real range and speed depend on the equipment, antenna, obstacles and the carrier in the area.
| Option | Suited for | What to prepare | Watch out for |
|---|---|---|---|
| LAN cable or RS-485 | Points the cable can reach, where high stability is needed | Conduit, lightning and surge protection | Cabling is expensive over long distances; underground cable can be damaged by digging |
| Wi-Fi | Points near the building, or where an access point already exists | A powered access point, and a network separate from the office system | Short range; walls and metal weaken the signal; draws too much power for a small battery |
| 4G | Large data volumes or cameras, when you need results fast and there is mobile signal at the mounting point | A SIM and monthly plan, a router or module that supports it | Monthly fee per point; signal varies by location and time of day; SIM renewal must be managed |
| LoRaWAN | Small amounts of data sent infrequently, from points spread apart within one area, such as a farm or an industrial estate | Your own LoRaWAN gateway or a carrier-operated network, and a network server | Little data per message and limits on transmission time; not suited to images or commands that need an immediate response |
| NB-IoT | Small amounts of data, from points spread far apart, where a mobile carrier offers the service in the area | A SIM with NB-IoT service enabled, and devices that support the carrier's frequency band | Depends on the carrier's coverage; low speed; check the service in the area first |
Measure the signal at the real mounting point
The signal at the front door of a building and the signal inside a steel cabinet next to the pump can differ a lot. Before deciding, take a device or a phone on the same carrier to the exact position where it will be mounted, measure at several times of day, and record the values as evidence. If the signal is weak, the fixes range from moving the antenna outside the cabinet and raising the pole to switching to a different option.
When the signal drops, the data must not be lost
A wireless link will always drop out from time to time. So the device at the site should store data locally first, then send it afterward when the signal returns, with a sequence number and a timestamp from the site, so the receiving side can remove duplicates and know which period is missing. The details and sample code are in the article about storing data at the gateway and sending it later.
The server side must also be able to tell that a device went silent, which is not the same as a value of zero. If a gap is shown as zero, a viewer may think the tank is dry or the machine has stopped, when in fact the signal just dropped.
Remote control is a separate decision
Viewing values remotely and switching equipment on and off remotely carry different risks. If you will send commands, the site needs a protection system that works on its own even when the link drops, for example cutting the pump when the water level is low. You must know that a command arrived and was actually carried out, and you must limit who can send commands. So many projects start with monitoring only, and add control later once the data and procedures are ready.
Costs after installation
- Monthly SIM or network service fees per point, and renewal work
- Network server or cloud service fees, if you do not host it yourself
- Batteries that must be replaced on a cycle, and the trip to a remote point to replace them
- Firmware updates for routers and gateways
Limits and cautions
This article did not test any particular device or carrier. Real range and speed must be measured at the site. Radio equipment must be a model approved under the rules of the regulator in Thailand, and electrical wiring and lightning protection must be done by a licensed electrician.
Starting references
- LoRa Alliance — About LoRaWAN
- Wikipedia — LoRa
- Wikipedia — Narrowband IoT
- Wikipedia — Cellular network
- OASIS — MQTT Version 3.1.1




