LoRaWAN (Long Range Wide Area Network) is the leading low-power wide-area network protocol for IoT deployments. Planning a LoRaWAN network requires careful consideration of gateway placement, device density, wall attenuation, and link budget calculations. This guide covers everything you need to know to design a reliable LoRaWAN network from scratch.
What is LoRaWAN and Why Use It?
LoRaWAN is a media access control (MAC) protocol for LoRa, a radio frequency modulation technique that enables long-range communication at low power consumption. LoRaWAN networks operate in unlicensed ISM (Industrial, Scientific, and Medical) radio bands, making them ideal for IoT deployments where cellular connectivity is expensive or unavailable.
Key advantages of LoRaWAN include ranges of 2-15 km in outdoor environments and 500m-2km indoors, battery life of 5-10 years for sensors, the ability to support thousands of devices per gateway, and low infrastructure cost compared to cellular alternatives.
LoRaWAN Network Architecture
A typical LoRaWAN deployment consists of end devices (sensors and actuators), gateways that relay data between devices and the network server, a network server that manages the network and routes messages, and an application server that processes the data. End devices communicate with gateways using LoRa modulation, while gateways connect to the network server via standard IP connections over Ethernet, Wi-Fi, or cellular backhaul.
Key Planning Factors
Link Budget: LoRaWAN has a typical link budget of 155 dB. This determines the maximum distance and penetration through obstacles. A higher link budget means better range and wall penetration.
Wall Attenuation: Different materials attenuate (weaken) LoRa signals differently. Drywall reduces signal by 3-6 dB, concrete by 10-15 dB, and metal by 20+ dB. Floor slabs between stories typically attenuate by 15-25 dB.
Gateway Capacity: A single LoRaWAN gateway can handle up to 10,000 end devices, though practical capacity depends on data rate and duty cycle. Plan for 200-500 active devices per gateway for reliable performance.
Duty Cycle: In Europe (868 MHz), LoRaWAN is subject to a 1% duty cycle regulation, meaning each device can only transmit 1% of the time. In the US (915 MHz), FHSS allows higher throughput.
Pro Tip: Use our IoT Project Generator to automatically calculate gateway requirements based on your building's floor count and area. It applies industry-standard coverage rules to recommend the optimal number of gateways.
Step-by-Step Network Planning Process
Site Survey: Map your deployment area, noting building dimensions, floor count, wall materials, and potential gateway mounting locations (rooftop, server rooms, utility closets).
Device Inventory: List all sensors, actuators, and devices you plan to deploy. Group them by type, location, and data requirements (real-time vs. periodic).
Gateway Placement: Position gateways to maximize coverage while minimizing overlap. Indoor gateways should be centrally located on each floor or every 2-3 floors.
Signal Modeling: Use link budget calculations or tools like our Site Planner to predict signal strength at each device location.
Testing: Deploy a pilot with 1-2 gateways and a sample of devices. Verify coverage before scaling to the full deployment.
Smart building technology transforms commercial offices, hospitals, schools, and retail spaces into data-driven environments. By deploying IoT sensors for air quality, occupancy, temperature, lighting, and security, building managers can reduce energy costs by 20-30%, improve occupant comfort, and enable predictive maintenance. This guide covers the essential sensor types, placement strategies, and gateway requirements for smart building deployments.
Essential Smart Building Sensors
Sensor Type
What It Measures
Recommended Density
Placement
IAQ Sensor (CO₂, Temp, Humidity)
Indoor air quality
1 per 3-5 rooms
Ceilings, central locations
People Counter
Footfall and occupancy
1 per entrance/corridor
Doorways, hallways
Desk Occupancy Sensor
Workspace utilization
1 per 2-4 desks
Under desks, ceiling mount
Leak Detection Sensor
Water leaks
1 per floor + wet areas
Near pipes, bathrooms, kitchens
Smart Light Controller
Lighting automation
1 per room/zone
Light fixtures, junction boxes
Temperature & Humidity
Climate monitoring
1 per 5-10 rooms
Walls, server rooms
Gateway Placement for Multi-Floor Buildings
LoRaWAN gateways can typically penetrate 2-3 concrete floors. For buildings with up to 6 floors, a common strategy is to place one gateway every 2 floors in a central utility room or server closet. For buildings over 10 floors, consider dedicated gateways per floor or rooftop-mounted outdoor gateways with antenna systems that cover multiple floors.
The optimal gateway count follows this formula: Gateways = Ceiling(Floors / Floors-Per-Gateway). With shared coverage (2-3 floors per gateway), a 10-floor building needs 3-5 gateways. With dedicated coverage (1 floor per gateway), it needs 10.
IAQ Monitoring: The Killer App for Smart Buildings
Indoor Air Quality (IAQ) monitoring has become the most compelling use case for smart building IoT. CO₂ levels above 1000 ppm cause drowsiness and reduced cognitive function. Temperature and humidity outside comfort zones reduce productivity. By monitoring IAQ in real-time, building managers can optimize HVAC schedules, detect ventilation failures, and provide occupants with air quality dashboards.
Calculator: Our Project Generator automatically calculates the number of IAQ sensors needed based on your room configuration. Select "Smart Building" and enter your floor plan to get instant device recommendations.
Security Camera Integration
Modern smart buildings combine LoRaWAN sensors with IP security cameras for a unified monitoring platform. While sensors handle environmental monitoring via low-power LoRaWAN, cameras use Ethernet (PoE) or Wi-Fi for high-bandwidth video. Plan for 4-6 cameras per floor in office buildings, with NVR (Network Video Recorder) placement in secure server rooms. The combination of AI-powered cameras with LoRaWAN sensors creates a comprehensive building management system.
Calculating gateway coverage is one of the most critical steps in LoRaWAN network planning. Too few gateways leave coverage gaps; too many waste budget on unnecessary infrastructure. This guide explains the math behind coverage calculations and provides practical formulas you can use for any building.
Understanding Link Budget
Link budget is the total amount of signal loss a radio link can tolerate while still maintaining communication. For LoRaWAN at SF7 (Spreading Factor 7), the typical receiver sensitivity is -123 dBm, and with a 14 dBm transmitter, the total link budget is approximately 137 dB. At SF12 (maximum range), sensitivity improves to -137 dBm, giving a link budget of 151 dB.
Free Space Path Loss (FSPL)
The baseline signal loss in free air is calculated using: FSPL(dB) = 20×log₁₀(d) + 20×log₁₀(f) + 32.45, where d is distance in km and f is frequency in MHz. For LoRaWAN at 868 MHz at 100m distance, FSPL is approximately 80.9 dB.
Wall and Floor Attenuation Values
Material
Thickness
Attenuation (dB)
Notes
Drywall / Plasterboard
12-15 cm
3-6
Minimal impact on LoRaWAN
Wood Frame Wall
10-15 cm
4-8
Depends on insulation
Brick
20-25 cm
8-12
Moderate signal reduction
Concrete
15-25 cm
10-15
Significant impact
Reinforced Concrete
20-30 cm
15-25
May need dedicated GW per floor
Metal / Steel
Any
20-30+
Very high attenuation
Glass (standard)
5-10 mm
2-4
Minimal impact
Floor Slab (concrete)
15-25 cm
15-25
Cross-floor coverage limit
Practical Coverage Calculation Example
Consider a 5-story office building, 40m × 30m per floor, with concrete floor slabs (20 dB attenuation). Placing a gateway on Floor 3 with the antenna at ceiling height:
Floor 3 (same floor): Max distance ~50m diagonal. FSPL ≈ 77 dB. No floor penetration needed. Coverage: Excellent across entire floor.
Floors 2 and 4 (one floor away): Path includes one floor slab (20 dB) + FSPL. Total loss ≈ 97 dB. With 155 dB link budget, remaining margin is 58 dB. Coverage: Good.
Floors 1 and 5 (two floors away): Path includes two floor slabs (40 dB) + FSPL. Total loss ≈ 117 dB. Remaining margin: 38 dB. Coverage: Adequate for most sensors.
Try It: Our Site Planner does this calculation automatically with real-time signal heatmap visualization. You can adjust wall materials, floor thickness, and TX power to see exactly how coverage changes.
Optimization Strategies
Use high-gain antennas on gateways to extend range in specific directions
Place gateways near windows or exterior walls for better outdoor coverage
For very thick concrete buildings, consider running Ethernet to each floor for distributed gateways
Use higher spreading factors (SF10-SF12) for devices at the edge of coverage, accepting lower data rates
Deploy redundant gateways in critical areas to ensure no single point of failure
Retail IoT transforms physical stores into data-rich environments. By deploying people counters, footfall sensors, environmental monitors, and smart cameras, retailers can optimize store layouts, improve staff scheduling, and measure marketing campaign effectiveness. The global smart retail market is projected to exceed $80 billion by 2028, driven by the need for data-driven in-store experiences.
Key IoT Technologies for Retail
Stereo Vision People Counters: AI-powered 3D sensors like the VS125 use dual cameras to count people with 98%+ accuracy. They distinguish between adults and children, track direction of travel, and operate in varying lighting conditions. Install above entrances and key aisles to measure traffic flow patterns throughout the day.
Storefront Footfall Sensors: Window-mounted sensors like the VS361 count passersby on the street, measuring how many people walk past the store vs. how many enter. This gives retailers a real-time conversion rate — the ratio of footfall to actual store visitors.
IAQ Sensors: Temperature and CO₂ monitoring ensures customer comfort. A crowded store with poor ventilation drives customers away. IAQ data can trigger HVAC adjustments automatically.
Typical Smart Store Sensor Layout
Entrance: 1 stereo vision people counter per entrance (above door frame)
Storefront: 1 footfall sensor per 10m of storefront
Sales Floor: 1 occupancy sensor per 200m² of sales area
Storage/Back Room: 1 temperature & humidity sensor per room
Fitting Rooms: 1 occupancy sensor per 4-6 fitting rooms
Security: 4-6 AI cameras per floor (bullet or dome type)
Leak Detection: 2 sensors per floor (near restrooms, kitchens)
Calculating ROI for Retail IoT
The return on investment for retail IoT typically comes from three sources: reduced energy costs (15-25% savings through smart HVAC and lighting), increased sales (5-12% uplift from optimized store layouts based on traffic data), and reduced shrinkage (10-20% reduction in losses through better surveillance and occupancy awareness).
Quick Start: Select "Smart Retail" in our Project Generator, enter your store area and number of floors, and get an instant device BOM with quantities and network topology.
Healthcare IoT (IoMT — Internet of Medical Things) is revolutionizing patient care through continuous monitoring, fall detection, environmental sensing, and asset tracking. Hospitals and clinics use IoT to improve patient outcomes, reduce nurse call response times, and ensure regulatory compliance for temperature-sensitive medications and stored blood products.
Critical Healthcare IoT Use Cases
Radar Fall Detection: Radar-based sensors like the VS373 detect falls in patient rooms, bathrooms, and corridors without cameras — preserving patient dignity while providing 24/7 safety monitoring. Unlike traditional nurse call buttons, radar detection works even when the patient is unconscious or unable to press the button.
Bathroom Occupancy Monitoring: Privacy-preserving occupancy sensors detect bathroom usage patterns and alert staff if a patient has been in the bathroom for an unusually long time, indicating a potential fall or medical event.
IAQ Monitoring: Hospital-acquired infections (HAIs) are a major concern. CO₂ and humidity monitoring ensures adequate ventilation in patient wards, operating rooms, and waiting areas. Poor air quality correlates with higher infection rates.
Leak Detection: Water leaks in hospitals can damage expensive equipment, create slip hazards, and disrupt patient care. Continuous leak monitoring around plumbing, medical gas systems, and HVAC units provides early warning.
Healthcare IoT Deployment Considerations
Privacy: Use radar or ToF sensors instead of cameras in patient areas. People counters with no video recording ensure HIPAA compliance.
Reliability: Healthcare IoT requires redundant gateways and failover mechanisms. A gateway failure in a hospital is unacceptable.
Interference: Medical equipment can generate RF interference. Perform thorough site surveys before deployment.
Compliance: Ensure all IoT devices meet relevant healthcare regulations (HIPAA, FDA if applicable) and hospital IT security policies.
Typical Hospital Floor Sensor Plan
For a typical 30-room hospital floor with patient wards, clinics, labs, and staff areas: 1 LoRaWAN gateway per floor, 1 fall detection sensor per patient room, 1 IAQ sensor per ward section, 2-3 bathroom occupancy sensors per wing, 3 leak detection sensors per floor, and 4 AI security cameras at key intersections.
Smart city IoT deployments connect municipal infrastructure — street lighting, waste management, environmental monitoring, parking, and public safety — to a unified management platform. LoRaWAN is the preferred protocol for smart city networks due to its long range (up to 15 km outdoors), low power consumption, and ability to cover entire cities with just 10-50 gateways.
Core Smart City IoT Applications
Fill Level Sensors: Ultrasonic sensors in waste bins measure fill level in real-time, enabling dynamic collection routing. Instead of collecting all bins on a fixed schedule, trucks only visit bins that are 70%+ full. Cities report 30-40% reduction in collection costs and significant decreases in overflowing bins.
Environmental Monitoring: Weather stations and air quality sensors distributed across the city provide hyperlocal data for pollution monitoring, flood warning, and urban heat island analysis. Temperature, humidity, barometric pressure, PM2.5, NO₂, and O₃ sensors give a complete environmental picture.
Street Lighting: Smart lighting controllers enable remote dimming, scheduling, and fault detection. Individual LED fixtures can be controlled based on time of day, traffic levels, or emergency situations. Energy savings of 40-60% are typical.
Distance & Level Sensors: Laser distance sensors monitor water levels in rivers, canals, and storm drains for flood prediction. Ultrasonic level sensors monitor tank levels in water treatment plants.
Smart City Gateway Network Design
For outdoor LoRaWAN coverage, rooftop-mounted gateways with omnidirectional antennas are ideal. A single gateway on a 30m tower can cover a 3-5 km radius. For a city of 100 km², 5-10 strategically placed gateways provide comprehensive coverage. Use outdoor-rated gateways like the UG67 with IP67 enclosure for weather resistance.
Data Architecture
Smart city IoT data flows from sensors to gateways to a network server (such as Milesight IoT Cloud or a private ChirpStack/TTN deployment) to the city's management platform. The platform aggregates data, triggers alerts, generates reports, and provides dashboards for city operators.
Scale Tip: Our Project Generator's Smart City mode calculates device quantities based on area (m²) rather than room count, automatically determining optimal sensor density for street zones, parks, and public buildings.
Industrial IoT (IIoT) connects factory floor equipment, energy systems, and environmental conditions to a centralized monitoring platform. By deploying current transformers, leak detection sensors, IoT controllers, and industrial gateways, manufacturers can reduce downtime by 25-30%, cut energy costs by 15-20%, and prevent catastrophic equipment failures through predictive maintenance.
Key Industrial IoT Sensors
Current Transformers (CT): Clip-on current sensors like the CT10x monitor power consumption of individual machines, motors, and production lines. By tracking current draw patterns, you can detect motor bearing wear (gradual increase in current), identify machines left running during non-production hours, and balance electrical loads across phases.
Leak Detection: Industrial facilities use water, compressed air, glycol, and other fluids. Rope-style or point sensors detect leaks early, preventing water damage to equipment, reducing compressed air waste (which can account for 30% of industrial electricity costs), and avoiding environmental contamination.
IoT Controllers: Devices like the UC300 bridge the gap between IoT sensors and legacy equipment. They can read Modbus RTU data from industrial machines, control relays for process automation, and communicate via LoRaWAN to provide wireless connectivity to otherwise isolated equipment.
Industrial Network Considerations
Harsh Environments: Use industrial-rated gateways (IP67) and sensors rated for temperature extremes, dust, and vibration
Metal Structures: Factories with heavy steel structures cause significant RF reflection and attenuation. Plan for more gateways per area than in office buildings
Backhaul: Use 4G/5G cellular routers (like UR35) for gateway backhaul when wired Ethernet is unavailable
Cybersecurity: Industrial networks require strict segmentation between IoT sensor networks and production SCADA systems
ROI Calculation
A typical industrial IoT deployment pays for itself within 12-18 months through: reduced energy waste ($10K-$50K/year for a mid-size factory), avoided downtime ($5K-$20K per prevented incident), reduced maintenance costs (20-30% savings through condition-based vs. time-based maintenance).
Agricultural IoT enables precision farming by providing real-time data on soil moisture, weather conditions, crop health, and irrigation system performance. LoRaWAN is particularly well-suited for agriculture because of its long range — a single outdoor gateway can cover a farm of 5,000+ acres — and low power consumption that enables solar-powered sensor deployment in remote fields.
Essential Agricultural Sensors
Soil Moisture Sensors: Buried at root depth (10-30 cm), soil moisture sensors like the EM500-SMTC measure volumetric water content at multiple depths. This data drives irrigation scheduling, preventing both over-watering (which wastes water and promotes root disease) and under-watering (which reduces yield).
Weather Stations: Complete weather stations like the WTS506 measure temperature, humidity, wind speed, wind direction, rainfall, barometric pressure, and solar radiation. Hyperlocal weather data enables frost alerts, spray timing optimization, and harvest planning.
CO₂ Sensors: In greenhouses, CO₂ monitoring is critical. Plants consume CO₂ during photosynthesis, and in sealed greenhouses, levels can drop below 400 ppm (outdoor ambient), severely limiting growth. CO₂ sensors trigger supplementation systems to maintain optimal 800-1200 ppm levels.
Valve Controllers: IoT-controlled valves like the UC51x enable automated irrigation based on soil moisture data, weather forecasts, and scheduled watering programs. This eliminates manual valve operation and enables precise water delivery to different field zones.
Solar-Powered Deployment
Agricultural sensors are often deployed far from power infrastructure. Solar gateways like the SG50 combine a LoRaWAN gateway with a solar panel and battery, enabling fully autonomous operation in remote locations. Pair with battery-powered sensors (5-10 year battery life) for a completely wireless deployment.
Network Planning for Large Farms
For a 100-hectare (250-acre) farm: 1 outdoor gateway (UG67) on a 10-15m pole provides 3-5 km coverage radius. Place 1 weather station per 50 hectares, 1 soil moisture sensor per 2-5 hectares (depending on crop value and soil variability), and 1 valve controller per irrigation zone. Total sensor count for a 100-hectare farm: approximately 25-50 devices.
Scale Mode: The Project Generator uses area-based calculations for Agriculture mode. Enter your total farm area and it auto-calculates gateways (1 per 5,000m²), sensors, and controllers.
How many LoRaWAN gateways do I need for a building?+
For a typical office building, one indoor gateway (like the Milesight UG63) covers 2-3 floors or about 5,000 sqm. For larger buildings or those with concrete/metal walls, add one gateway per 2-3 floors. Our Project Generator auto-calculates the optimal number based on your building specs.
What sensors should I deploy in a smart building?+
Essential smart building sensors include: IAQ sensors (CO2, temperature, humidity), occupancy/people counting sensors, door/window contact sensors, water leak detectors, and light level sensors. Start with IAQ and occupancy for the highest ROI — they directly impact energy savings and employee comfort.
What is the typical range of a LoRaWAN sensor?+
LoRaWAN range depends on environment: 2-5 km in urban areas with buildings, 10-15 km in rural open areas, and 2-5 floors vertically in buildings. Walls reduce range significantly — concrete attenuates 10-15 dB, metal 20+ dB. Use our site planner to visualize coverage for your specific building.
How long do LoRaWAN sensor batteries last?+
Most Milesight LoRaWAN sensors last 5-10 years on a single battery (typically CR2477 or AA lithium). Battery life depends on transmission frequency, payload size, and spreading factor. Sensors reporting every 15 minutes typically last 8+ years. Sensors with higher sampling rates (every 30 seconds) last 3-5 years.