I. Introduction
Wireless sensor networks (WSNs) are spatially distributed autonomous sensors in a sensing field to monitor specific phenomenons and collect data [1]. WSN is one of the key enabling technologies for the IoT system. IoT is essentially all possible devices connected to the internet that will enable applications to be smart by sensing, harnessing data, making decisions and acting on it, mostly without human interventions [2]. IoT devices are growing at an exponential pace with wearable devices, kitchen appliances, connected cars, healthcare devices, etc becoming more and more commonplace [3].