scieee AI-readable full text Open interactive document viewer

Simplifying the process to perform air temperature and UHI measurements at large scales: Design of a new APP and low-cost Arduino device

Romero Rodríguez, Laura; Sánchez Ramos, José; Álvarez Domínguez, Servando

Abstract

The main purpose of Urban Heat Island (UHI) studies and the monitoring of ambient temperatures at large scales is to gather temperature information in a certain area, so as to understand temperature heterogeneity and its drivers or detect locations that lack thermal comfort. However, these studies originate mostly from some research projects, with sufficient budget and manpower to carry out the measurements and the necessary calculations. Thus, there is a scarcity of air temperature information, making it difficult to implement appropriate mitigation actions worldwide. The present work aims to greatly simplify the process to monitor air temperatures and carry out UHI estimations through mobile transects. This is done by introducing the design of a low-cost device and a new APP, which performs automatically most necessary UHI calculations. A web tool based on the Inverse Distance Weighting interpolation method is also included to obtain heat maps. The methodology is illustrated using case studies in Seville (Spain) and New York city (USA). By introducing a straightforward and reproducible methodology, we aim to open the path for a more widespread availability of ambient temperature data anywhere in the world, without the need for costly equipment and many hours of dedication by the researchers.

Full text

Sustainable Cities and Society 95 (2023) 104614 Available online 23 April 2023 2210-6707/© 2023 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/bync-nd/4.0/). Simplifying the process to perform air temperature and UHI measurements at large scales: Design of a new APP and low-cost Arduino device Laura Romero Rodríguez a , * , Jos´ e S´ anchez Ramos b , Servando ´ Alvarez Domínguez b a Escuela Superior de Ingeniería, Departamento de M´ aquinas y Motores T´ ermicos, University of C´ adiz, Spain b Grupo Termotecnia, Escuela Superior de Ingenieros, University of Seville, Spain ARTICLE INFO Keywords: UHI GIS Arduino Urban temperatures Urban climate Environmental monitoring ABSTRACT The main purpose of Urban Heat Island (UHI) studies and the monitoring of ambient temperatures at large scales is to gather temperature information in a certain area, so as to understand temperature heterogeneity and its drivers or detect locations that lack thermal comfort. However, these studies originate mostly from some research projects, with sufficient budget and manpower to carry out the measurements and the necessary calculations. Thus, there is a scarcity of air temperature information, making it difficult to implement appropriate mitigation actions worldwide. The present work aims to greatly simplify the process to monitor air temperatures and carry out UHI estimations through mobile transects. This is done by introducing the design of a low-cost device and a new APP, which performs automatically most necessary UHI calculations. A web tool based on the Inverse Distance Weighting interpolation method is also included to obtain heat maps. The methodology is illustrated using case studies in Seville (Spain) and New York city (USA). By introducing a straightforward and reproducible methodology, we aim to open the path for a more widespread availability of ambient temperature data anywhere in the world, without the need for costly equipment and many hours of dedication by the researchers. 1. Introduction 1.1. The UHI phenomenon Urbanization has transformed the environment to areas with heatabsorbing materials and added energy-consuming elements such as cars or buildings, triggering an increase in urban temperatures which is commonly known as the Urban Heat Island (UHI) effect. As a result, the UHI phenomenon leads to increased energy needs (cooling energy), environmental issues (formation of smog and air pollutants) and health consequences (such as thermal stress) (L. Romero Rodríguez et al., 2020). In addition, the continuous growth of population suggests that this situation will not be mitigated in the coming years: on the contrary, it will be intensified. It is also expected that heat wave events, responsible for many health issues, will be increased by the UHI effect in the future (Founda & Santamouris, 2017). In fact, on the 25th July 2022, the temperatures reached 45 ◦C in the city of Seville (Spain), and didn’t drop below 30 ◦C at night during one of the most intense heat waves ever experienced in Spain. Due to this, the temperature measured inside a certain home didn’t drop below 32 ◦C, since the building was not able to cool during the night. Extremely high temperatures were also recorded for instance in July 2022 in the UK, where the barrier of 40 ºC was reached for the first time ever. These temperatures have a highly negative impact on the occupants, particularly in low-income households at risk of energy poverty. The risks for the population are obvious: from heat-related illnesses or cardiovascular and respiratory disorders, to less severe consequences such as the difficulty to sleep at night due to the high temperatures inside the buildings. According to Rizvi et al. (2019), in fact most urban localities are facing the effects of the UHI and extreme heat wave events. For all these reasons, it is very important to measure the UHI in cities, particularly in those where extreme temperatures may be reached. The measured data may also be effectively used for calibrating and validating both outdoor and indoor microclimate models or to calibrate remote sensing data, since better boundary conditions may be identified for characterizing buildings, vegetation, transportation flows, etc. (Pigliautile & Pisello, 2018). Determining the relationship between within-city spatial variation of ambient temperatures and land-use * Corresponding author at: PhD in Energy Engineering, Departamento de M´ aquinas y Motores T´ ermicos, Escuela Superior de Ingeniería, Universidad de C´ adiz. Avda. Universidad de C´ adiz, no 10, 11519. Puerto Real, C´ adiz, Spain. E-mail address: [email protected] (L. Romero Rodríguez). Contents lists available at ScienceDirect Sustainable Cities and Society journal homepage: www.elsevier.com/locate/scs https://doi.org/10.1016/j.scs.2023.104614 Received 21 November 2022; Received in revised form 26 March 2023; Accepted 22 April 2023 Sustainable Cities and Society 95 (2023) 104614 2 characteristics would also be useful for developing mitigation strategies for urban heat island effects in the warming climate, but relatively few published studies collected high-density ambient temperature data in large cities to date (Johnson et al., 2020). The extense literature suggests mainly three alternatives for measuring the UHI: weather stations, mobile transects and satellite images (which estimate the surface urban heat island, named SUHI). Satellite images have a high spatial coverage, but low spatial and temporal resolutions. Weather stations have a high temporal resolution, but low spatial resolution and spatial coverage. Mobile transects have a high spatial resolution, but a low temporal resolution and a medium spatial coverage. In any case, as just seen the three alternatives for measuring the UHI have both advantages and disadvantages. Some recent works propose for instance to incorporate data from nearby static weather stations, but they fail to reflect the spatial variations of air temperature in urban areas due to the limited availability of weather stations (Tonekaboni et al., 2018). Also, to reach dense monitoring networks in a cost-efficient way, recently there have been efforts to utilize networks of citizen weather stations (Feichtinger et al., 2020). On the other hand, many studies have chosen the mobile transect method as the optimal one to measure the UHI in cities due to its high spatial resolution, as will be discussed in the next section. To solve the issue of low temporal resolution and obtain both high spatial and temporal resolutions from mobile transects, the study in L. Romero Rodríguez et al. (2020) recently suggested the development of an empirical model, based on mobile transects and measurements taken in a reference weather station. 1.2. Mobile monitoring for measuring the UHI Many studies choose the mobile transect method to characterize the UHI. Using mobile systems for urban environmental mapping allows to reduce the amount of monitoring systems involved and to guarantee data collection in the Urban Canopy Layer, ensuring detecting punctual sources of heat or pollutants due to anthropogenic activities (Pigliautile et al., 2021). For instance, in Heusinkveld et al. (2010) an assessment of the intensity of the urban heat island in Rotterdam was carried out, using an innovative mobile bio-meteorological measuring platform mounted on a cargo bicycle, equipped with innovative instruments to quantify the micrometeorological conditions inside urban canyons. (Yin et al., 2020) investigated an integrated approach for mapping urban heat, including both ground-based and satellite-based temperature data and mounting vehicle-borne mobile sensors on city buses to collect high-frequency temperature data. The study in Rajkovich and Larsen (2016) describes the design and validation of a mobile measurement bicycle to determine how physical characteristics (e.g., solar radiation, albedo, sky view factor, vegetation) contributed to local variations in ground and air temperatures. In Yadav and Sharma (2018), the variation of intra-city Urban Heat Island in megacity Delhi by the mobile transverse measurement technique is examined, generating spatial maps of the UHI along the mobile routes. Mobile monitoring is also increasingly used as a tool to acquire air quality data at a high spatial resolution (Van den Bossche et al., 2015). It should be mentioned that, since different mobile locations have non-synchronous observation times for air temperature, temporal corrections are necessary to correct the original parameters observed at different times to parameters at a unified time for further analysis (L. Liu et al., 2017), using data from stationary weather stations typically. To perform these temporal corrections, (L. Liu et al., 2017) proposes an improved model by considering correlation coefficients that are influenced by the underlying surface conditions, and the distance between the stationary weather stations and the mobile location points during a mobile measurement. In addition, to address the problem of long response times for non-transient probes during mobile transects, the “stop-and-go” method was optimized in previous studies (Qi et al., 2021), (Qi et al., 2022), by regulating the staying and settling times of air temperature measurements. The latter study also suggests that an optimized reentry-transect method should be adopted during periods of abrupt changes in the ambient temperatures. Thermal comfort is also estimated by several studies that use mobile monitoring. The review in Mansi et al. (2021) introduces an overview on the application of wearable sensors for recording physiological parameters and extracting features potentially correlated with thermal comfort, together with a discussion about their reliability. The study in Pigliautile and Pisello (2018) deals with the development of a new wearable system for microclimate and air quality investigation. On the other hand, the aim of the study in Pigliautile et al. (2021) was to map the urban microclimate environment by means of a miniaturized and wearable weather station, to catch the pedestrian perspective in the outdoors. The study in Chokhachian et al. (2018) set up a georeferenced environmental monitoring equipment and used the toolkit to have a better understanding of dynamic thermal comfort and the thresholds for tolerance to thermal discomfort. Also, (Pioppi et al., 2021) tested a wearable sensing platform to study pedestrian-level microclimate boundary conditions as well as the impact of urban greening on moderating excess heat in dense urban areas. 1.3. Low-cost and open source alternatives As seen in the previous section, many studies use the mobile monitoring approach to estimate the UHI, but they require expensive equipment and a considerable amount of work to perform the calculations, which is the reason why UHI studies are mostly carried out with investments from research projects. High-resolution air temperature measurements in urban environments are therefore challenging due to high instrumentation and maintenance costs, which is why (Gubler et al., 2021) for instance presented a low-cost measurement device consisting of a temperature logger and a custom-made, naturally ventilated radiation shield. Available data from citizen weather stations are also beginning to be used by research studies. For instance, in Venter et al. (2020) open-access air temperature data from 1452 privately-owned Netatmo weather stations within Oslo were used as reference data for satellite models of air temperature. In addition, a large number of vehicles routinely navigate through city streets, so with on-board sensors, they could potentially be transformed into a dynamic network that monitors the urban environment comprehensively and efficiently (Anjomshoaa et al., 2018). On the other hand, the use of open-source technologies is growing due to the access to the Arduino and Raspberry-Pi prototyping platforms (Nouman et al., 2019). Low power and cheap computational projects using these devices have brought the use of small computers and micro-controllers to the masses (Baker, 2014). Although many systems exist for building microcontrollers, Arduino (an opensource hardware and software enterprise and user interaction community) has proved to be the most effective (Kondaveeti et al., 2021). Arduino may be used as a low-cost device to measure air temperatures for instance, and it has a large online community that stimulates engagement in development and enables rapid prototyping and debugging (Ali et al., 2016). The paper in Kondaveeti et al. (2021) presents a methodical literature review intended to intensively analyze and compare existing primary studies on prototyping with Arduino. Several studies have already attempted the development of low-cost devices to carry out UHI measurements. This is due to the fact that lowcost sensors now allow the observation of urban temperatures at a much finer resolution, and recently there has been a proliferation of fixed and mobile monitoring networks (Yang & Bou-Zeid, 2019). For instance, in Ferrelli et al. (2015), a measurement system based on open source electronics (Arduino) was designed to obtain high frequency data to study the UHI, equipped with sensors that registered GPS information, air temperature, relative humidity, barometric pressure and altitude above sea level in a moving vehicle. In Nouman et al. (2019) the prototyping and validation of a mobile environmental sensor kit is explained, showing that it had a reasonable accuracy despite its L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 3 affordability with respect to industrial sensors. In Sun et al. (2019), low-cost sensors were mounted on mobile vehicles for mobile transect observations to identify high temperature and low temperature regions, placing the sensors also in a simple fixed station to obtain long-term instantaneous urban temperature data. (Schneider et al., 2017) present a data fusion method based on geostatistics that allows for merging observations of air quality from a network of low-cost sensors with spatial information from an urban-scale air quality model. The study in de Oliveira Júnior et al. (2018) aimed to develop an application for smartphones and created a low cost device to measure climatological variables such as air temperature, black globe temperature and relative humidity in animal production facilities and human work environments. Last of all, (Ali et al., 2016) describes the Open Source Building Science Sensors project, which developed open source devices based on the Arduino platform for measuring and recording long-term indoor environmental and building operational data. Another potential approach to perform low-cost UHI measurements is the use of smartphones, which are widely available nowadays. The study in Higuchi et al. (2015) states that billions of people carry smartphones, so employing the powerful capability of such commercial mobile products has become a promising approach for large-scale environmental and human-behavioral sensing, known also as opportunistic sensing. For instance, the study (Overeem et al., 2013) shows that air temperature information of the urban canopy layer can be obtained from smartphones, collecting battery temperatures by an Android application and using a heat transfer model to estimate daily mean air temperatures. However, the results were not very accurate. Nevertheless, modern smartphones are in fact equipped with sensors, on-board storage, computing and communication capabilities, so they can become an intelligent, scalable, autonomous and potentially cost-free component of monitoring systems in future smart cities (Alavi & Buttlar, 2019). The variety of sensors of smartphones includes GPS, accelerometers, compasses, gyroscopes, barometers, cameras, microphones, light/proximity sensors and so on, so they are no longer just a means of human communication but also powerful sensing tools (Higuchi et al., 2015). The paper in Alavi and Buttlar (2019) presents a comprehensive literature review of smartphone-centric research for the monitoring of civil infrastructure systems. However, the smartphone sensing paradigm is still in its infancy, with great promise for researchers to rapidly expand its many potential applications (Alavi & Buttlar, 2019). 1.4. Aim of this work The literature review has revealed the different approaches utilized by research studies to characterize the UHI in urban settings. Among them, mobile transects are frequently used due to the high spatial resolution that may be obtained, performing measurements in the urban canopy layer and thus ensuring the detection of punctual sources of heat. However, these studies require costly equipment and many hours of dedication of the researchers. From the point of view of the authors of this work, those drawbacks are the reason why UHI studies are seen in research studies, but are not widely available around the world due to the lack of resources, investment, and the need for experienced users. The present work aims to provide a way to carry out ambient temperature and UHI studies easily and accurately, with a very low investment. The objective is to allow anyone, with minimal training, to perform UHI evaluations around the world, so that these studies may be more frequently found. In order to do this, an APP for Android smartphones was developed, as well as an Arduino device. Once the Arduino is built, including Bluetooth and a temperature sensor, the APP is capable of receiving the temperature data and capturing the GPS coordinates at the same time by using the GPS sensor of the smartphone. This allows to have spatial, temporal and temperature information for every timestep during any mobile transect, which may be viewed and exported in a fast and simple way. An additional web-based tool programmed in Javascript is also presented, which allows to perform automatically the Inverse Distance Weighting (IDW) interpolation method to obtain spatially continuous data in the area under study. As far as the authors know, this is the first system capable of performing automatically most necessary UHI calculations for a precise evaluation of any urban setting around the world, using a free APP that may be obtained by requesting the authors, and requiring low-cost equipment without the need for very experienced users. The design of the APP and the Arduino device are explained in Section 2, and possible outcomes of the procedure are shown in Section 3 for case studies in Seville (Spain) and New York city (USA). This allows the method to be easily replicated by other researchers. Several options for improvement are also identified in the “Conclusions and future work” section, such as the potential for crowdsourcing. 2. Data and methods 2.1. Development of the Arduino device First of all, the development of the device used to carry out the UHI measurements will be described. As explained in the literature review, Arduino is an open-source hardware and software enterprise which is widely known. For this reason, there are many libraries and examples of devices that may be built using its technology. In our case, the Arduino circuit design (named UHIINO) was built using the following components: •Arduino UNO microcontroller board. •HC-05 Bluetooth module. •DS18B20 temperature sensor. •Jumper wires. •Several resistors. •Arduino case enclosure. •Power bank. A soldering iron was used to make strong wire connections from the components to the microcontroller. All in all, the total cost of the device was around 60 USD. The design and the device may be seen in Fig. 1. The Arduino code necessary to send the temperature measurements every second using the Bluetooth module was uploaded on the Arduino. The accuracy of the temperature sensor is ±0.5 ◦C, with a mean error at ambient temperatures (range between 0 ◦C and 45 ◦C) lower than 0.2 ◦C. Once the code is uploaded, whenever the Arduino is turned on by using the power bank, it sends the temperature measured by the probe via Bluetooth. If the device is used during the day and solar radiation may impact the sensor readings, it is highly recommended to include a radiation shield for the temperature probe. This will help to avoid overestimation of the outdoor temperatures. 2.2. Development of the APP 2.2.1. General description An APP was created by using the tool App Inventor. This blocksbased tool, developed by MIT, is “an intuitive, visual programming environment that allows everyone to build fully functional apps for Android phones, iPhones, and Android/iOS tablets”. It also facilitates the creation of complex, high-impact apps in significantly less time than traditional programming environments. This is even more important in the case of researchers that are not computer programmers. Despite its relatively uncomplicated use, many complex actions and calculations may be done, as is the case of the present APP. An example of one of the screens of the APP and the blocks used for programming it are shown in Fig. 2. The most important feature of the APP created is that, at the same time it reads the temperature data that the Arduino sends via Bluetooth, it captures the GPS coordinates of the location, using the built-in GPS of the smartphone (which are nowadays very precise for outdoor L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 4 locations). This allows to have all the necessary measurements in one single device, without having to buy a GPS sensor, and also avoiding the amount of time needed to link the GPS measurements to those of a separate temperature sensor. The result is the “UHIINO APP:Tool for measuring the UHI through mobile transects”, whose main screen is shown in Fig. 3. The APP is freely distributed by the authors on request. The following subsections will explain in detail how the UHIINO APP may be used. 2.2.2. New mobile transect Once the button “New mobile transect” is clicked on the main screen, the APP opens the screen shown in Fig. 4 (left). The first step is to give a name that will identify the mobile transect. Then, the time interval in seconds for the measurements may be chosen. After that, it is necessary to turn on the GPS sensor of the smartphone (activating location on the device), and to turn on the Bluetooth. By clicking on the button “Temp. sensor”, the HC-05 Bluetooth module should be chosen among the available devices. If both the GPS and the temperature sensor are correctly connected to the APP, both buttons are shown in green (see Fig. 4 on the right). The APP makes use of OpenStreetMaps to show the location of the user. Then, the user has the option to get the temperature from the closest weather station, to be used for Urban Heat Island Intensity (UHII) calculations. In this case, the APP was programmed to call the Fig. 1. Arduino circuit design obtained from circuito.io (left) and photo of the device with a power bank (right). Fig. 2. Layout of one of the screens of the APP (left) and blocks needed for programming it (right). Fig. 3. Main screen of the APP (left) and APP icon (right). Fig. 4. Screen for a new mobile transect (left) and GPS and temperature sensor connected (right). L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 5 OpenWeatherMap API, which receives the current GPS coordinates of the location of the user and returns the temperature of the closest weather station. If the user knows that station is a rural weather station, this option may be used. If that is not the case or there are no nearby OpenWeatherMap stations, the user may input the rural temperature manually. On the other hand, the user also has the option to upload a JSON layer. This means having a layer that displays for instance a semitransparent polygon with the area to be measured, or a polyline with the path that should be followed in the mobile transect. By clicking on the “Upload geojson layer” button, the user can enter the URL of such a layer, which is then displayed on the map as may be seen in Fig. 5 on the right. This may be very useful to remain in the area under study or in the desired path once the mobile transect has begun. The case study used to illustrate the process in this section is a certain area around “Parque de Maria Luisa” in Seville (Spain). 2.2.3. Measurements and thermal comfort After all the previous steps have been carried out, the mobile transect begins when the user clicks on the “Start” button. A “Recording” message is shown on the screen, and in each timestep the latitude, longitude, urban temperature and UHII are updated. The latitude and longitude are taken from the built-in GPS sensor, the urban temperature is the measurement of the Arduino, and the current UHII is the calculation of the difference between the urban temperature and the rural temperature (if provided). In addition, the distance travelled during the mobile transect is also shown, as well as its duration (see Fig. 6 left). In every timestep, the location of the user is updated and a blue line shows the path that was followed until that moment. It is important to note that disturbances such as the heat released from the human body (the person holding the device) or from the vehicle where the device is installed should be avoided, since they could impact the sensor readings. Apart from that, the user has the option to show a thermal status panel. In this panel (see Fig. 6 right), the user may choose their perception of thermal comfort, in a similar way as the ASHRAE thermal sensation scale: very cold, cold, cool, neutral, warm, hot or very hot. This information is updated every timestep, and may later be used to carry out thermal comfort studies by taking into account the opinions of the users about their thermal sensation. 2.2.4. Finishing a mobile transect When the user has already done the mobile transect, the button “Stop” should be clicked. Automatically, a text file with one row for each timestep is created with the latitude, longitude, temperature and thermal comfort data. This file is saved in the smartphone. The user is also given the option to share the file, using the APPs installed on his phone: Google Drive, Dropbox, Whatsapp, Telegram, E-mail, and so on. Then, clicking on the “Back” button, the user is shown again the main screen of the APP. If the user clicks on the “Previous mobile transects” button (see Fig. 3 left), the screen of Fig. 7 (right) is shown. There, a list is included with all the mobile transects that the user carried out since the APP was installed. By selecting the desired name of the mobile transect, the user then has several options: •Read file. In this case, the file of the mobile transect is read and the measurements will be displayed as explained in the next section. •Detele file. The file with the mobile transect is deleted. •Share file. The user is given again the option to share through different APPs the file of any of the mobile transects. •Back. Goes back to the main screen. An additional feature is included in the APP. Since it takes a certain amount of time to carry out a mobile transect, and the main aim is to compare the temperature of all the measurements that are taken, it is necessary to perform temporal corrections. For this purpose, the APP will add an additional column to the mobile transect file, assuming that the mobile transect began and finished at the same spot. The total temperature difference at this spot is calculated, and the amount of time that passed is known. Then, it is assumed that all the measured area behaves in a similar way, and thus each measurement is modified by applying a linear interpolation considering the time elapsed until reaching that point and the total temperature change during the whole mobile transect. As a result, this temporal correction allows to compare all the measurements taken with each other. The process is summarized in the following equation: Tmodified,P=Tmeasured,P−(Tfinal,O−Tinitial,O)⋅telapsed,P ttotal Equation 1: Modified temperature in measurement P, depending on the temperature change at the origin of the mobile transect (O) and the time elapsed. Fig. 5. Uploading a new layer (left) and image of the polygon and path uploaded on the APP (right). Fig. 6. Screen capture during a mobile transect (left) and indication of the thermal status (right). L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 6 As mentioned, the proposed method assumes that the mobile transect begins and finishes at the same spot to perform the temporal corrections, so as to estimate the cooling/warming rate in the area. If that were not the case and the mobile transect is different or a higher precision is necessary, other more complex options could be proposed. Conducting a "go-back" monitoring along the same route could be a workable strategy: since for each spot in the route temperature values at different times are recorded, the cooling/warming rate of each spot can be estimated. Also, another option could be to use a “stop-and-go” strategy in representative areas. These alternatives would however require a more detailed post-processing of the measurements after performing the mobile transect. 2.2.5. Outcomes shown by the APP When the user clicks on the “Read file” button, a graph is shown with all the temperature measurements of the mobile transect. The user may also choose the UHII parameter (calculated by also knowing the temperature of a rural weather station) for this graph. In Fig. 8 an example of such graphs may be seen. Last of all, by clicking on the button “See data in map” the user may see the location of every measurement taken during the mobile transect (see Fig. 9). The temperature measurements are color-coded, based on their deviation from the temperature range between the maximum and minimum temperatures of the mobile transect: the coldest one-third of temperatures are colored in green, the hottest one-third are colored in red, and the remaining temperatures are colored in orange. As previously mentioned, the results of any mobile transect are saved in the smartphone in a CSV file, which may be shared through different APPs. Its format is shown in Fig. 10 (left). This file may be opened in any computer, creating custom graphs for instance as may be seen in Fig. 10 (right). The CSV file can also be easily opened in many GIS software such as QGIS, ArcGIS, or for instance Google Earth (see Fig. 11), showing the location of each measurement point with the attribute of temperature, UHII or thermal comfort state. 2.3. Development of the heat maps 2.3.1. Description of the method In UHI studies, there is a great demand for spatially continuous data over the area under study (frequently known as heat maps), which is why spatial interpolation methods are essential. These interpolation techniques create surfaces from measured points, allowing to estimate a variable (in this case, the temperature) at unsampled locations by using a set of discrete measurement points. As stated by L. Liu et al. (2017), three of the most commonly used point interpolation approaches are Inverse Distance Weighting (IDW), kriging and spline, used in that study to predict the air temperatures. In the present work, an additional feature will be included to produce these heat maps. The chosen method to perform the spatial interpolations is the IDW method. IDW is a deterministic method that relies on a scattered set of points for performing interpolations. The value assigned to any unsampled point within the area is calculated as a weighted average, depending on the values of the original set of points. To perform the weighted averages, the method uses the inverse of a power of distance to those known points. There are many different variants of the IDW method. In the present study, the designed method includes the following steps: Fig. 7. Screen capture once a mobile transect is finished (left) and selection of a previous transect (right). Fig. 8. Urban temperature (left) and Urban heat island intensity (right). L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 7 1 First, we will assume that there are p measurement points obtained after performing a certain mobile transect. These measurement points include latitude, longitude and temperature data, read from the CSV file created by the UHIINO APP. 2 By choosing an adequate system of coordinates, the latitude and longitude data are converted into Cartesian coordinates relative to that chosen system. 3 In order to obtain a mesh covering the whole measured area (see Fig. 12), the user must choose the length a of the sides of each squared cell in the mesh, with a minimum value of 10 m. First, a rectangle R within which all the p measurement points are contained is automatically defined. This rectangle is then divided into m⋅n squared cells, where m is the number of rows and n is the number of columns. 4 Any cell in the mesh can be identified by a pair (r,c) of numbers that indicate the row and the column occupied by the cell respectively, where 1 ≤r ≤m and 1 ≤c ≤n. 5 The user must provide a second parameter called number of levels (l), which represents the number of neighboring cells that may influence the temperature of each cell. This will be later explained. 6 To estimate the temperature of any cell with indices (r,c), the following calculations are done: We assume that P1…Pk are the k sample points that lie on any of the (2⋅l+1)2 cells with indices (r’,c’) such that: r-l ≤r’ ≤r +l c-l ≤c’ ≤c +l Let T1…Tk be the sample temperatures that correspond to these points. To estimate the temperature of the red cell in Fig. 12 for instance, the points within the pertinent cells (r’,c’) are shown in Fig. 13: on the left we may see a case with size cell a =20 m and l =1. On the right, size cell a =20 m and l =2. Any measurement of the sample that falls outside the scope defined by the number of levels, will not be taken into account to estimate the temperature of the cell under study. To implement the IDW method, another parameter should be considered: the exponent e whose possible values are ≥0. Greater values of e give a greater influence to the measurements closer to the interpolated point. Choosing the value of e depends on the degree of Fig. 9. Screen capture of a mobile transect as seen in the APP. Fig. 10. Results exported on a CSV file (left) and custom Excel graph (right). Fig. 11. Image from Google Earth showing the measurement points. L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 8 smoothing desired for the interpolation, the distribution and density of the original set of points, and the distance over which one point is allowed to influence. In our case, we set an e value of 2 to perform the calculations. Last of all, for i =1…k, let d(r,c,i)be the euclidean distance between the point Pi and the center of the cell (r,c). The following formula for the IDW method is then used to estimate the temperature of each cell: Tcell (r,c)=∑i=k i=1(1 d(r,c,i))e ⋅Ti ∑i=k i=1(1 d(r,c,i))e Equation 2: Estimation of the temperature of one cell in row r and column c. Let us observe that, unless l is equal to max(m,n), k will be always lower than p. If k =0, which may happen when no measurements fulfilled the criteria, the cell will be left blank and the temperature will not be estimated in that cell. If d(r,c,i)=0 because Pi coincides with the center of the cell (r,c), then the procedure assigns the temperature Ti to that cell. 2.3.2. Interface of the tool The IDW method explained in the previous section was implemented in a web-based tool, programmed using HTML/CSS/Javascript. This tool, which will be named UHIINO Web, may be accessed by the users by clicking on the “IDW” button of the UHIINO APP (shown in Fig. 9). It makes use of the Google Maps Javascript API in order to include the maps on the interface, as well as to create shapes as will be explained in this section. The main screen of UHIINO Web is shown in Fig. 14. First of all, as indicated in the upper part of the map, the user should begin by uploading the file with the mobile transect data. This file is the one created by the UHIINO APP, which as mentioned before includes the latitude, longitude and temperature of each measurement point taken during a mobile transect. Regardless of whether the user opens UHIINO Web on their smartphone or in a computer using the URL, they should first click on the “Select file” button that is shown, to choose the file from their device storage. It is also possible to download a file example to try the tool. Once the file is chosen, it is read automatically and the map pans to the area where the mobile transect was carried out. Each measurement point is colored depending on the temperature that was measured (Fig. 15), using 6 alternatives from green to red. The legend of colors is shown on the right of the map. This legend changes depending on the mobile transect uploaded, since it adapts the ranges of each color to the measurements. By clicking on any measurement, the user is shown its temperature in a prompt message. Once the measurement points have been shown on the tool, the next step that the user may do is create spatially continuous data of the area under study. To do so, the IDW method explained in the previous section was programmed in Javascript and executed when the user clicks on the ”Calculate” button shown in Fig. 15. Before doing so, the user must first set the desired size of each cell, and the number of levels. Once it is done, all the IDW calculations are performed, and the tool shows the results on Fig. 12. Mesh automatically created to cover the whole area of measurements. Fig. 13. Graphical explanation of the number of levels. On the left, cell size=20 m and only 1 level is considered. On the right, cell size=20 m and 2 levels are considered. L. Romero Rodríguez et al. Sustainable Cities and Society 95 (2023) 104614 9 the map. The Google Maps Javascript API allows for the display of all the buildings in the area in 3D, along with the measurements and spatial interpolations, which will be different depending on the parameters that were set (see Fig. 16). The user may choose with the blue buttons on the left whether to show or not the measurement points as well as the cells, in order to view the area more clearly. The tool allows to zoom in, zoom out, rotate and tilt the map, as desired by the user. 2.4. Summary of the proposal of this study In this section, we will provide a brief overview of the steps that anyone willing to follow the procedure proposed in this study should do to obtain ambient temperature or UHI measurements anywhere around the world in an easy way. These steps were explained throughout the document, and can be summarized as follows: 1 The Arduino device should first be manufactured by following the connection diagram of Fig. 1. The code that needs to be uploaded can be obtained by requesting the authors. The total cost of the device should be around 60 USD, and it can be assembled in less than 1 hour once its components are available. 2 The UHIINO APP should be installed in any android smartphone. The APP can be obtained by requesting the authors. 3 A certain area needs to be analyzed to measure the ambient temperatures or estimate its Urban Heat Island. The user goes to the area, powers on the Arduino device, opens the UHIINO APP, and performs the mobile transect while recording the measurements. If desired, they may upload on the APP a previously created JSON file with the polygon of the area that needs to be measured, or the path that should be followed. 4 Once the mobile transect is finished, the user may view the temperature and UHII measurements in a graph or a map within the APP. Also, they could export a CSV file with the measurements through E- mail, Dropbox or Google Drive for instance, depending on the APPs they have installed. 5 If having spatially continuous data is desired, the user opens the UHIINO Web tool through the APP or in any computer, and uploads the file with the measurements of the mobile transect. After choosing Fig. 14. Main screen of the web-based tool. Fig. 15. Colored measurement points of a mobile transect on the UHIINO Web tool. Fig. 16. Example of spatial interpolation of cell size=50 m and 2 levels (left) and cell size=20 m and 2 levels (right). L. Romero Rodríguez et al.