LoRaFarM: A LoRaWAN-Based Smart Farming Modular IoT Architecture