Internet of Things or IoT is meant to be the future of the current Internet. It is commonly defined as a network of physical and virtual objects, devices or things that are capable of collecting surrounding data and exchanging it between them or through the Internet. To enable these data collection, devices are embedded with sensors, software and electronics and the exchange capability is achieved by connecting them to local area networks or to the Internet.The origins of the Internet of Things are diffuse. Even though the word was first coined in 1999 by Kevin Ashton, co-founder and executive director of the Auto-ID Center at MIT, for companies such as CISCO, the IoT was born in 2009, when more devices than people were connected to the Internet. At that time, the number of connected devices were 10 billion, but the expectations are generous. It is thought that by 2020, more than 50 billion devices will be connected to the Internet.As it can be extracted from the numbers, during the last few years, the Internet of Things has seen an unexpected increase in popularity, mainly thanks to the following technology improvements:• Smaller, more durable and powerful sensors. New manufactured sensors are seeing their size substantially reduced, allowing their placement in small spaces and also in delicate and dangerous scenarios.• Increased efficiency. One of the key aspects of the Internet of Things paradigm is the wireless interconnection between devices. Thus, these devices must be equipped with autonomous power supplies that limit their lifespan. To cope with this problem, manufacturers are aiming for efficient processors and software engineers are specifically designing software and communication technologies for IoT in which lower energy consumption 1