## 1 Introduction  
According to a study by the United Nations (UN) Habitat Trends Observatory [1], each year about sixty million people move to reside in urban areas, representing around a million every week. In 2050, 70% of the world's population will live in cities. This is a challenge that will require transforming cities to make them livable and sustainable, taking into account the important role of information technology and communication that will make today's cities into \"smart cities\" [2]. A Smart City is considered a city that employs information and communication technologies to get its infrastructure, and offers public services, improved in an interactive and efficient way. Thischallenge aims to provide its infrastructure with solutions to facilitate user interaction with a wide range of urban elements. This is a digital platform on which a complex ecosystem of multiple agents is developed (the ones which get the information are called sensors and others acting against events are called actuators), managing a lot of data that makes you understand what is happening in the city and allowing you to provide some information and services to citizens more efficiently. The final objectives aim to make the use of resources more efficient, to increase service quality, to identify new needs, to provide information to citizens in real time, and to create a more sustainable path for economic and social development. The use of information technologies to satisfy the challenges of the cities can be attributed to the strong concern for sustainability, to the social demand for real time information, and to the emergence of new Internet-related technologies, such as mobile devices, the semantic web, cloud computing, or the Internet of Things (IoT) [3]. In urban areas of Spain, mainly young couples with young children are those housed in gated communities. An urban community is a privately owned area that has restricted access, so it tends to be a closed place. This security may be embodied in various elements from simple key access gates, armored security doors, CCTV systems, to an alarm circuit. A gated community offers a number of bonuses that make it attractive (the family atmosphere is isolated from the busy city center, and it provides extra security). In addition, the owners of these houses share a common property with gardens, sports facilities, and recreation zones. The cost of administering these common spaces depends on the number of services to be managed (management and supervision of the pool, garden, sports facilities, elevators, common lighting, air conditioning and central heating, concierge, and the insurance policy) and, obviously, the number of neighbors. Under the environment of Smart Cities, the latest trends in construction are based on bioclimatic urbanization. In this development, the homes are based on an effective design that allows the seamless use of natural energies avoiding conventional energy consumption, with the related savings, and constructed following bioclimatic criteria (use of climatic conditions on site, use of recycled and recyclable materials, etc. ), focused on generating a sustainable heating and ventilation system for the building. All collected data are sent to a central computer responsible for processing the obtained results, which enables monitoring operation at all times and checking the data for the indicated period. Each house has installed sensors to monitor various parameters (the temperature at different heights of housing, humidity sensors, air flow meters, presence sensors, CO\({}_{2}\), and particulate suspension/powder sensors) for further processing. In some cases, they include weather stations that measure parameters such as solar radiation, outside temperature, pressure, humidity, and electrical consumption and production that discriminate the sources of origin (PV panels, wind turbines, other renewables, and electric network).