A Distributed System for Supporting Smart Irrigation using IoT Technology