**7. Conclusions**

After a thorough review of the state of the art on the most relevant aspects related to the deployment of smart campuses, this work detailed the design and deployment of a LoRaWAN IoT-based infrastructure able to provide novel applications in a smart campus. The architecture proposed the deployment of fog computing nodes throughout the campus to support physically distributed, low-latency, and location-aware applications that decrease the network traffic and the computational load of traditional cloud computing systems. To evaluate the proposed system, a campus of the University of A Coruña was recreated realistically through an in-house developed 3D Ray-Launching radio-planning simulator. Such a tool was tested by comparing its output with empirical measurements, showing a good accuracy. The proposed solution meets the established operational requirements:


In addition, three practical smart campus applications were designed and evaluated with the planning simulator (a mobility pattern detection system, a smart irrigation solution, and a smart traffic-monitoring deployment), showing that the tool is able to provide useful guidelines and insights to future smart campus designers and developers.

**Author Contributions:** P.F.-L., P.L.-I. and T.M.F.-C. conceived and designed the experiments; T.M.F.-C., M.S.-A. and P.F.-L. performed the experiments; M.C.-E., P.L.-I. and L.A. created the scenario and performed the simulations; P.L.-I., E.A. and F.F. processed the simulation results; T.M.F.-C., P.L.-I. and P.F.-L. analyzed the data; P.F.-L., T.M.F.-C., P.L.-I., L.A. and L.C. wrote the paper.

**Funding:** This work has been funded by the Xunta de Galicia (ED431C 2016-045, ED431G/01), the Agencia Estatal de Investigación of Spain (TEC2016-75067-C4-1-R) and ERDF funds of the EU (AEI/FEDER, UE).

**Conflicts of Interest:** The authors declare no conflict of interest.
