Full text
Citation: Mobaraki, B.; Komarizadehasl, S.; Castilla Pascual, F.J.; Lozano-Galant, J.A. Application of Low-Cost Sensors for Accurate Ambient Temperature Monitoring. Buildings 2022,12, 1411. https:// doi.org/10.3390/buildings12091411 Academic Editor: Cinzia Buratti Received: 5 August 2022 Accepted: 2 September 2022 Published: 8 September 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). buildings Article Application of Low-Cost Sensors for Accurate Ambient Temperature Monitoring Behnam Mobaraki 1,*, Seyedmilad Komarizadehasl 2, Francisco Javier Castilla Pascual 3 and JoséAntonio Lozano-Galant 1 1Department of Civil and Building Engineering, Universidad de Castilla-La Mancha (UCLM), Av. Camilo Jose Cela s/n, 13071 Ciudad Real, Spain 2Department of Civil and Environment Engineering, Universitat Politècnica de Catalunya Barcelona Tech (UPC), C/Jordi Girona 1-3, 08034 Barcelona, Spain 3Department of Civil and Building Engineering, Escuela Politécnica de Cuenca, Campus Universitario, Universidad de Castilla-La Mancha (UCLM), 16071 Cuenca, Spain *Correspondence: [email protected] Abstract: In structures with reduced monitoring budgets, the high cost of commercial metering devices is always an obstacle for monitoring structural health. This might be an issue when temperatures must be measured for both structural and environmental reasons. To fill this gap, in this paper, a novel monitoring system is proposed for the accurate measurement of indoor temperature in buildings. This protocol is characterized by its generality, as it can be easily adapted to measure any structural or environmental parameters on site. The proposed monitoring system uses from one to eight low-cost sensors to obtain multiple measurements of the ambient temperatures. The accuracy ranges of the developed monitoring systems with different numbers of sensors are statistically analysed. The results indicate that the discrepancy of the measurements decreases with the increase in the number of sensors, as the maximum standard deviation of 10 sensors (0.42) decreases to 0.32 and 0.27 for clusters of 20 and 30 sensors, respectively. Keywords: building monitoring; Arduino microcontroller; thermal analysis; low-cost sensor; statistical analysis; indoor temperature 1. Introduction The effects of extreme natural hazards (such as storms, earthquakes and climate change) on structures, together with natural deterioration, might require continuous evaluation and monitoring of them during their service life. Using different equipment, structural health monitoring (SHM) enables not only assessing serviceability of structures but additionally enables the detection and quantification of damage [ 1 ]. A number of SHM techniques have been proposed in the literature for monitoring various parameters of structures such as stresses, strains, accelerations and temperatures [ 2 – 6 ]. One of the main problems in the application of current systems is the high cost of the measuring devices, which can limit their applicability in structures with low monitoring budgets. As an alternative to traditional monitoring devices, a number of scholars have proposed low-cost solutions based on low-cost sensors [ 7 ] (LCSs) and open-source microcontrollers such as Arduino UNO [ 8 ], Arduino Nano [ 9 ], Arduino DUE [ 10 ], Arduino MEGA 2560 [ 11 ] and Raspberry [ 12 ]. Application of low-cost sensors for various monitoring projects can be found in the literature. For instance, Alvarez et al. [ 13 ] developed a real-time monitoring system for water content in cement mortars during the hydration process. Frei et al. [ 14 ] proposed a wireless sensor network to estimate building performance by measuring environmental parameters. Bidgoli et al. [ 15 ] used low-cost accelerometers to measure road pavement roughness. Rashid et al. [ 16 ] developed intuitive protocols to interact with electric appliances in smart buildings. Dave et al. [ 17 ] provided a web-based system that captures Buildings 2022,12, 1411. https://doi.org/10.3390/buildings12091411 https://www.mdpi.com/journal/buildings
Buildings 2022,12, 1411 2 of 23 information about energy usage, occupancy and user comfort through various types of sensors. An example of studying dynamic behaviour of scaled structures using low-cost accelerometer can be found in [ 18 ]. Lucchi et al. developed a low-cost and accurate conservation remote sensing technology for the hygrothermal evaluation of historic walls before and after retrofitting [ 19 ]. This methodology provided the assessment of the real condition of walls and to study various thermal insulation materials placed on the inner side. The proposed system was composed of sensor measurements, data acquisition system, data storage, and communication system. Aiming to lessen the cost, the data acquisition system was established based on Raspberry Pi 3. In addition, Amphenol temperature humidity sensors were used as they were characterized by high quality (RH: ± 2% T: ± 0.3 ◦ C), a lower cost than the similar ones in the market, and easier acquisition compared with industrial ADC systems. Therefore, establishment of the proposed system required a smaller budget (EUR 20) compared to the commercial ones in the market (EUR 96). Given to the impossibility of removing samples and the unknown hygrothermal behavior of walls, the same authors developed an in situ hot box providing analysis of various insulation technologies when applied on a historic building so as to determine the hygrothermal performance of historic masonry buildings [ 20 ]. A systematic literature review of application of LCSs for building monitoring has been presented in the article of Mobaraki et al. [21]. Figure 1presents the evolution of articles published corresponding to the use of lowcost sensors in various fields, from 2011 to 2021. The information visualized in this figure is in percentages, which correspond to the quantity of publications in the associated year relative to the whole number of publications in the studied period. Figure 1illustrates this information corresponding to the fields of civil and building engineering, medical engineering, electrical engineering, industrial engineering, mechanical engineering, and architecture. Buildings 2022, 12, x FOR PEER REVIEW 2 of 24 captures information about energy usage, occupancy and user comfort through various types of sensors. An example of studying dynamic behaviour of scaled structures using low-cost accelerometer can be found in [18]. Lucchi et al. developed a low-cost and accurate conservation remote sensing technology for the hygrothermal evaluation of historic walls before and after retrofitting [19]. This methodology provided the assessment of the real condition of walls and to study various thermal insulation materials placed on the inner side. The proposed system was composed of sensor measurements, data acquisition system, data storage, and communication system. Aiming to lessen the cost, the data acquisition system was established based on Raspberry Pi 3. In addition, Amphenol temperature humidity sensors were used as they were characterized by high quality (RH: ±2% T: ±0.3 °C), a lower cost than the similar ones in the market, and easier acquisition compared with industrial ADC systems. Therefore, establishment of the proposed system required a smaller budget (EUR 20) compared to the commercial ones in the market (EUR 96). Given to the impossibility of removing samples and the unknown hygrothermal behavior of walls, the same authors developed an in situ hot box providing analysis of various insulation technologies when applied on a historic building so as to determine the hygrothermal performance of historic masonry buildings [20]. A systematic literature review of application of LCSs for building monitoring has been presented in the article of Mobaraki et al. [21]. Figure 1 presents the evolution of articles published corresponding to the use of lowcost sensors in various fields, from 2011 to 2021. The information visualized in this figure is in percentages, which correspond to the quantity of publications in the associated year relative to the whole number of publications in the studied period. Figure 1 illustrates this information corresponding to the fields of civil and building engineering, medical engineering, electrical engineering, industrial engineering, mechanical engineering, and architecture. (a) (b) (c) (d) (e) (f) Figure 1. Evolution of studies referenced in Scopus database dealing with low-cost sensors, from 2011 to 2021: (a) civil–building; (b) medical; (c) electrical; (d) industrial; (e) mechanical; (f) architecture. Figure 1. Evolution of studies referenced in Scopus database dealing with low-cost sensors, from 2011 to 2021: (a) civil–building; (b) medical; (c) electrical; (d) industrial; (e) mechanical; (f) architecture.
Buildings 2022,12, 1411 3 of 23 The strategy used to obtain the information in Figure 1is based on the following two steps. (1) Using keywords for various fields: a number of keywords such as “low-cost monitoring”, “low-cost sensor”, “monitoring”, and “SHM” were introduced in the Scopus database. The obtained results were filtered in the following fields: civil and building engineering, industrial engineering, mechanical engineering, medical engineering, electronic engineering, and architecture. This step was followed by the search algorithm “AND”. (2) Filtering the obtained articles: The obtained articles were filtered to eliminate duplications and out of topic works. This filtration led to a massive reduction in the quantity of articles found in the first step. For instance, considering the field of mechanical engineering only in 2021, the number of articles was reduced from 4753 to 1867. In the same way, the entire number of publications found in the field of civil and building engineering was reduced from 3052 to 2334. In this step, the search algorithm “AND NOT” was adopted for filtration. The remaining quantity of the articles was clearly addressing or assessing the application of low-cost sensors in the studied disciplines. It is also relevant to state that in this search algorithm, the authors were not focusing only on the English language articles. Thus, the acquired publications contain various languages from different parts of the world. The reviewed methodology was followed by another work in the literature [ 22 ] and by the same authors in the same journal (Buildings) [ 21 ]. Environmental temperature plays an important role in controlling a number of phenomena on sites as well as in the analysis of energy consumption in buildings [ 23 ]. Monitoring is commonly limited by equipment availability; therefore, elements and spaces are traditionally represented by a single temperature value. Connection problems and unexpected circumstances may invalidate long-term monitoring records when using only one device. The advantages of using several low-cost sensors have been stated in a number of studies [ 24 ]. For example, the authors developed a novel data acquisition system using low-cost sensors, to characterize thermal parameters of building envelopes [ 25 ]. Additional literature examples of the application of multiple low-cost sensors for environmental monitoring purposes are summarized in Table 1. This table includes the proposed application (air quality, ambient monitoring and indoor environmental monitoring), the sensor types, and the number of sensors used in each of the reported works. Table 1. Previous studies using multiple low-cost sensors for environmental monitoring. Application Sensor Type Number of Sensors Reference Air quality CO, NO, NO24 [26] Air quality MOx, SHT21, light sensor 2 [27] Air quality CO, NO, O3, NO25 [28] Indoor environmental monitoring SHT15- NTC-TSLl2561-PARALLAX-SENSAIR K30- 2 [29] Indoor environmental monitoring DHT11-DS18B20-LM35 3 [30] Ambient NO2monitoring Alphasense cell 16 [31] All of the studies in Table 1define the monitoring accuracy with multiple sensors. Nevertheless, none of these works studied the statistical benefits of increasing the number of sensors in the monitoring of ambient temperatures. To fill this gap, this paper presents a novel monitoring system using cheap sensors available in the market. Unlike commercial thermometers, this protocol is based on multiple measurements of the indoor temperatures, enabling the application of a statistical analysis to improve the low accuracy of the lowcost sensors. This monitoring system was applied to five of the low-cost sensors most commonly used in the literature (BMP280, BMP180, DHT22, SHT21 and SHT35) to develop five independent measurement devices. For each of these devices, the improvements in accuracy by increasing the number of sensors (ranging from 1 to 8) were studied. The five developed devices were calibrated with statistical references obtained by averaging the measurements of 30 sensors of each studied sensor type. This monitoring system is characterized by its generality; it can be applied to measure any structural (such as stress,
Buildings 2022,12, 1411 4 of 23 strain or acceleration) or environmental (such as transmittance value, resistance parameter, rate of heat flux or conductivity coefficient) parameters on site. Monitoring of these parameters is a decisive factor for maintenance operations of buildings [ 32 ], bridges [ 33 ], tunnels [ 34 , 35 ], and other infrastructure [ 36 ]. Implementation of the proposed methodology helps engineers to improve maintenance activities and operational efficiency while at the same time decreasing the cost and increasing the accuracy [ 37 ]. Application of affordable and reliable monitoring systems could solve challenges of long-term monitoring of the aforementioned structures [38]. This paper is organized as follows. In Section 2, the hardware and software of the five developed monitoring system are detailed. In Section 3, the main characteristics of the commercial thermometers in the literature are reviewed. In Section 4, a laboratory test is described that compares the accuracy of the developed monitoring system with thermometer uses in the literature. Then, the normal distribution of the data of the sensor sets is demonstrated. Next, the benefits of increasing the number of low-cost sensors are studied to provide recommendations for the selection of the types and numbers of sensors for different accuracy ranges. A cost comparison between the proposed monitoring systems and commercial alternatives is also presented. Finally, in Section 5, some conclusions are drawn. 2. Development of a Novel Monitoring System In this section, the hardware and software of the five proposed monitoring system devices are presented. 2.1. Hardware of the Proposed Monitoring System Various types of low-cost sensors are available to derive the temperature of surroundings. Examples of these sensors are the DHT11 [ 39 ], DHT22 [ 40 ], SHT10 [ 41 ], SHT21 [ 42 ], SHT35 [ 43 ], BMP180 [ 44 ], BMP280 [ 45 ], and LM75 [ 46 ]. The selection among these alternatives is traditionally based on the information presented in the commercial datasheets. The main characteristics of the abovementioned sensors (model, detection range, accuracy, resolution, response time, communication protocol, and cost) are listed in Table 2, which includes references to the application of associated sensors in the literature. Table 2. Specifications of low-cost thermometers from their catalogues. Nº Model Detection Range (◦C) Accuracy (◦C) Resolution (◦C) Response Time (s) Communication Protocol Cost (EUR) Reference 1 DHT11 [0 to 50] 2 0.1 2 Single wire/bus 1.56 [39] 2 DHT22 [−40 to 80] 0.5 0.1 2 Single wire/bus 5.40 [47] 3 SHT10 [−40 to 125] 0.5 0.01 8 I2C4.57 [41] 4 SHT21 [−40 to 125] 0.3 0.01 8 I2C4.61 [42] 5 SHT35 [−40 to 125] 0.2 0.01 8 I2C5.76 [43] 6 BMP180 [−40 to 85] 2 0.1 0.0075 I2C3.72 [44] 7 BMP280 [−40 to 85] 1 0.01 0.55 I2C and SPI 3.59 [45] 8 LM75 [−55 to 125] 1 0.1 0.5 I2C2.80 [46] This paper studied the five most commonly used sensors, as shown in Table 2(BMP180, BMP280, DHT22, SHT21 and SHT35). The chosen sensors for establishment of the five monitoring systems have different characteristics in terms of the accuracy, response time, communication protocol, and cost. The accuracies of these sensors range between 0.2 ◦ C (SHT35) and 2 ◦ C (BMP180), while their prices range between EUR 3.59 (BMP280) and EUR 5.76 (SHT35). The sensors studied are based on different communication protocols. For example, the sensor DHT22 uses a single wire/bus, while BMP180, SHT21 and SHT35 operate with the inter-integrated circuit protocol, I 2 C, and sensor BMP280 uses both I 2 C and the serial peripheral interface (SPI) [48].
Buildings 2022,12, 1411 5 of 23 An independent monitoring system was built with each of the five selected low-cost sensors. Each of these monitoring systems included the following elements. (1) The Arduino MEGA 2560: This microcontroller enables the physical computing and controlling of the protocol. This device was previously used in other complex projects (such as [ 30 , 31 ]). (2) A power source: A USB cable was attached to the laptop to supply the required power for an individual monitoring system. (3) The multiplexer TCA9548A: for enhancing the amount of network data transferred in a specific period of time by sensors with I 2 C communication protocols. (4) Breadboard: for easing the assembling of the system wires. (5) A clock sensor DS3231: for capturing the exact date and time of each measurement. (6) An SD card: for storing the data of each individual. Finally, (7) low-cost sensors. Each monitoring system included 30 of the following sensors: BMP180, BMP280, DHT22, SHT21 and SHT35. To provide a better understanding of the proposed methodology (statistical reference as well as combinatorial analysis), Figure 2a,b are presented. Figure 2a depicts the defined order/label of the installed sensors for each of the five monitoring systems in the written algorithm. The statistical reference of each monitoring system comes from the mean value of the associated 30 sensors. Figure 2b demonstrates the order of the sensor’s selection for combinatorial analysis, ranging from 1 to 8 out of 30 sensors. Through this combinatorial analysis, all the possible sensor arrangements will be chosen and compared with the associated statistical reference. Buildings 2022, 12, x FOR PEER REVIEW 5 of 24 response time, communication protocol, and cost. The accuracies of these sensors range between 0.2 °C (SHT35) and 2 °C (BMP180), while their prices range between EUR 3.59 (BMP280) and EUR 5.76 (SHT35). The sensors studied are based on different communication protocols. For example, the sensor DHT22 uses a single wire/bus, while BMP180, SHT21 and SHT35 operate with the inter-integrated circuit protocol, I 2 C, and sensor BMP280 uses both I 2 C and the serial peripheral interface (SPI) [48]. An independent monitoring system was built with each of the five selected low-cost sensors. Each of these monitoring systems included the following elements. (1) The Arduino MEGA 2560: This microcontroller enables the physical computing and controlling of the protocol. This device was previously used in other complex projects (such as [30,31]). (2) A power source: A USB cable was attached to the laptop to supply the required power for an individual monitoring system. (3) The multiplexer TCA9548A: for enhancing the amount of network data transferred in a specific period of time by sensors with I 2 C communication protocols. (4) Breadboard: for easing the assembling of the system wires. (5) A clock sensor DS3231: for capturing the exact date and time of each measurement. (6) An SD card: for storing the data of each individual. Finally, (7) low-cost sensors. Each monitoring system included 30 of the following sensors: BMP180, BMP280, DHT22, SHT21 and SHT35. To provide a better understanding of the proposed methodology (statistical reference as well as combinatorial analysis), Figure 2a,b are presented. Figure 2a depicts the defined order/label of the installed sensors for each of the five monitoring systems in the written algorithm. The statistical reference of each monitoring system comes from the mean value of the associated 30 sensors. Figure 2b demonstrates the order of the sensor’s selection for combinatorial analysis, ranging from 1 to 8 out of 30 sensors. Through this combinatorial analysis, all the possible sensor arrangements will be chosen and compared with the associated statistical reference. (a) (b) Figure 2. The defined sensor configuration for each monitoring system in the algorithm (a) and the order of the sensor selection for combinatorial analysis (b). The numbers in this Figure refer to the order of the sensors for selection of various sensor arrangements in combinatorial analysis. Table 3 provides information over the main characteristics (accuracy, response time and detection range) of the five developed data acquisition systems. This table also includes a picture of an individual developed monitoring system and the sketch of the wiring connections of a single sensor to Arduino MEGA using Fritzing software [49]. The analysis of this table shows that the utilized sensors were characterized by different accuracies, response time, and detection ranges. This use of different models of sensors provides the opportunity to investigate the statistical benefits of increasing the number of Figure 2. The defined sensor configuration for each monitoring system in the algorithm ( a ) and the order of the sensor selection for combinatorial analysis ( b ). The numbers in this Figure refer to the order of the sensors for selection of various sensor arrangements in combinatorial analysis. Table 3provides information over the main characteristics (accuracy, response time and detection range) of the five developed data acquisition systems. This table also includes a picture of an individual developed monitoring system and the sketch of the wiring connections of a single sensor to Arduino MEGA using Fritzing software [ 49 ]. The analysis of this table shows that the utilized sensors were characterized by different accuracies, response time, and detection ranges. This use of different models of sensors provides the opportunity to investigate the statistical benefits of increasing the number of sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 × 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 × 7.5 cm [ 50 ] and 19.5 ×6 cm [51], respectively).
Buildings 2022,12, 1411 6 of 23 Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (◦C) Response Time (s) Detection Range (◦C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software BMP180 2.0 0.0075 −40 to 85 Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software DHT22 0.5 2.0000 −40 to 80 Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software SHT21 0.3 8.0000 −40 to 125 Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software SHT35 0.2 8.0000 −40 to 125 Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software Buildings 2022, 12, x FOR PEER REVIEW 6 of 24 sensors on different sensor types. As shown in Table 3, four breadboards were used to ease the connections of the 30 sensors of an individual system. The size of each monitoring system was 27 6 cm. These dimensions are close to those of other commercial thermometers in the literature (such as TESTO 435-1 and FLUKE 971, with 22 7.5 cm [50] and 19.5 × 6 cm [51], respectively). Table 3. Established data acquisition systems and the associated technical characteristics of the used sensors. System Accuracy (°C) Response Time (s) Detection Range (°C) Figure Wire Connection to Arduino MEGA BMP280 1.0 0.5500 −40 to 85 BMP180 2.0 0.0075 −40 to 85 DHT22 0.5 2.0000 −40 to 80 SHT21 0.3 8.0000 −40 to 125 SHT35 0.2 8.0000 −40 to 125 2.2. Software 2.2. Software For the development of each monitoring system, two different algorithms were written for the following purposes: (1) capturing the data from low-cost sensors and (2) analysing the obtained data from an individual monitoring system. These algorithms are detailed in the following sections.
Buildings 2022,12, 1411 7 of 23 2.2.1. Algorithm for Reading Sensor Data Arduino IDE was used for programming the functionality of the input data introduced to the ports of the microcontrollers in each of the five developed monitoring systems. This algorithm was divided into the following steps. (1) Loading the SD card library (SD.h), the serial port interface library (SPI.h) and the corresponding sensor library (BMxI2C.h) into the project sketch. (2) Initializing the serial monitor and ports of the multiplexers to enable the readings. (3) Adjusting the measuring frequency and opening the SD card for saving the temperature measurements. In all the measurement sets, the recording intervals were set as the minimum response time of the commercial device, EL-USB-2 LASCAR ( 10 s ). (4) Recording the temperatures and saving them on the SD card over time. A summary of the developed algorithm is presented in Figure 3. To ease the algorithm replication, specific Arduino functions are included on the right of this figure. Buildings 2022, 12, x FOR PEER REVIEW 7 of 24 For the development of each monitoring system, two different algorithms were written for the following purposes: (1) capturing the data from low-cost sensors and (2) analysing the obtained data from an individual monitoring system. These algorithms are detailed in the following sections. 2.2.1. Algorithm for Reading Sensor Data Arduino IDE was used for programming the functionality of the input data introduced to the ports of the microcontrollers in each of the five developed monitoring systems. This algorithm was divided into the following steps. (1) Loading the SD card library (SD.h), the serial port interface library (SPI.h) and the corresponding sensor library (BMxI2C.h) into the project sketch. (2) Initializing the serial monitor and ports of the multiplexers to enable the readings. (3) Adjusting the measuring frequency and opening the SD card for saving the temperature measurements. In all the measurement sets, the recording intervals were set as the minimum response time of the commercial device, EL-USB-2 LASCAR (10 s). (4) Recording the temperatures and saving them on the SD card over time. A summary of the developed algorithm is presented in Figure 3. To ease the algorithm replication, specific Arduino functions are included on the right of this figure. Figure 3. Algorithm to record the temperature measurements on each monitoring system. 2.2.2. Data Analysis Algorithm To establish a statistical reference, each monitoring system included 30 sensors whose temperature outputs were monitored with the algorithm presented in the previous section. This statistical reference is independent for each monitoring system and is obtained by averaging the measurements of all the sensors. The different statistical references were used to evaluate the accuracy improvements in each monitoring system when increasing the number of sensors. To define the number of possible combinations for a specific number of sensors, the following combinatory equation was followed: 𝐶𝑛, 𝑟 = 𝑛! 𝑟! 𝑛 − 𝑟! ⁄ (1) where 𝑛 is the number of sensors (30 sensors) and 𝑟 the number of sensors used in each combination (after checking the results, this number ranged from 1 to 8). To obtain the arrangements of the different numbers of sensors, an algorithm was developed in MATLAB. “Arrangement” is defined as each of the sensor configurations presented in Figure 2b. The main steps of this algorithm for the calibration and data analysis are as Figure 3. Algorithm to record the temperature measurements on each monitoring system. 2.2.2. Data Analysis Algorithm To establish a statistical reference, each monitoring system included 30 sensors whose temperature outputs were monitored with the algorithm presented in the previous section. This statistical reference is independent for each monitoring system and is obtained by averaging the measurements of all the sensors. The different statistical references were used to evaluate the accuracy improvements in each monitoring system when increasing the number of sensors. To define the number of possible combinations for a specific number of sensors, the following combinatory equation was followed: C(n,r)=(n!)/(r!(n−r)!)(1) where n is the number of sensors (30 sensors) and r the number of sensors used in each combination (after checking the results, this number ranged from 1 to 8). To obtain the arrangements of the different numbers of sensors, an algorithm was developed in MATLAB. “Arrangement” is defined as each of the sensor configurations presented in Figure 2b. The main steps of this algorithm for the calibration and data analysis are as follows: (1) input the data from the SD card, (2) establish the statistical “reference temperature” from the average of the measurements of the 30 sensors of each individual monitoring systems, (3) input the desired number of sensors to be considered in each combination, determine the possible sensor arrangements and the associated mean values, and finally compare them with
Buildings 2022,12, 1411 8 of 23 the statistical reference temperature so as to check the performance of the chosen sensor arrangement, (4) select both the most accurate and inaccurate sets of sensors, and (5) check the repeatability of the sensors through the standard deviation. A summary of these steps is shown in Figure 4. With the purpose of specifying the most accurate/inaccurate sets of arrangements, the order of the sensors in all monitoring systems has been specified in the proposed algorithm. To evaluate the accuracy of the sensor arrangements, two parameters were compared with the reference temperatures of each monitoring system over time: (1) average temperature and (2) standard deviation. This algorithm enables the automatic identification of outliers. Buildings 2022, 12, x FOR PEER REVIEW 8 of 24 follows: (1) input the data from the SD card, (2) establish the statistical “reference temperature” from the average of the measurements of the 30 sensors of each individual monitoring systems, (3) input the desired number of sensors to be considered in each combination, determine the possible sensor arrangements and the associated mean values, and finally compare them with the statistical reference temperature so as to check the performance of the chosen sensor arrangement, (4) select both the most accurate and inaccurate sets of sensors, and (5) check the repeatability of the sensors through the standard deviation. A summary of these steps is shown in Figure 4. With the purpose of specifying the most accurate/inaccurate sets of arrangements, the order of the sensors in all monitoring systems has been specified in the proposed algorithm. To evaluate the accuracy of the sensor arrangements, two parameters were compared with the reference temperatures of each monitoring system over time: (1) average temperature and (2) standard deviation. This algorithm enables the automatic identification of outliers. Figure 4. Algorithm in MATLAB to analyse the recorded data. The number of possible arrangements for the different sensors studied (from 1 to 8) obtained by this algorithm is summarized in Table 4, together with the computation times. Computation time refers to the duration required for conducting the whole loop presented in Figure 4. Statistical analysis of the sensor arrangements provides the accuracy range (minimum and maximum errors) of the different sensor configurations in each monitoring system. Table 4. Number of arrangements and computation time for all possible configurations of sensors in monitoring system with 30 sensors. Nº of Sensors Nº of Arrangements Time (min) 1 30 0.01 2 435 0.01 3 4060 0.02 4 27,405 0.09 5 142,506 0.50 Figure 4. Algorithm in MATLAB to analyse the recorded data. The number of possible arrangements for the different sensors studied (from 1 to 8) obtained by this algorithm is summarized in Table 4, together with the computation times. Computation time refers to the duration required for conducting the whole loop presented in Figure 4. Statistical analysis of the sensor arrangements provides the accuracy range (minimum and maximum errors) of the different sensor configurations in each monitoring system. Table 4. Number of arrangements and computation time for all possible configurations of sensors in monitoring system with 30 sensors. Nº of Sensors Nº of Arrangements Time (min) 1 30 0.01 2 435 0.01 3 4060 0.02 4 27,405 0.09 5 142,506 0.50 6 593,775 4.28 7 2,035,800 19.22 8 5,852,925 28.16
Buildings 2022,12, 1411 9 of 23 3. Commercial Thermometers In this section, six of the commercial thermometers most commonly used in the literature to monitor ambient temperatures are studied. The main characteristics of these devices are listed in Table 5. This table includes the model’s name, the sensor accuracy, the temperature range, price, and the associated references to the application of the instrument in the literature. Table 5. Commercial thermometers in the market and literature. Nº Model Accuracy (◦C) Range (◦C) Price (EUR ) Reference 1 PROTMEX MS6508 1.0 [−20 to 60] 50 to 60 [52] 2 REED R6001 0.8 [−20 to 60] 130 to 150 [53] 3 FLUKE 971 0.5 [−20 to 60] 350 to 500 [54] 4 EL-USB-2 LASCAR (*) 0.5 [−35 to 80] 50 to 100 [55] 5 TESTO 435-3 (**) 0.2 [−25 to 75] 750 to 1200 [56] 6 EXTECH EN510 0.1 [−100 to 1300] 180 to 220 [57] (*) Price can vary depending on the number of items ordered. (**) Including external probes for air and surface temp. An analysis of Table 5shows the commercial sensor accuracy ranges between 0.1 ◦ C (EXTECH EN510) and 1.0 ◦ C (PROTMEX MS6508). The price range presents significant variations between the cheapest sensor (PROTMEX MS6508 with a cost of EUR 57) and most expensive one (TESTO 435-1 with a cost of EUR 750). A commercial thermometer with intermediate characteristics (EL-USB-2 LASCAR thermometer) was used simultaneously to validate the performance of the five developed monitoring systems. This device works with a normal 1/2 AA battery and can export its data to a PC through a USB port. 4. Experiment This section describes an experimental test conducted to validate the performance of the five developed monitoring systems. First, the experiment is described, and the obtained results are compared. Then, the normal distribution of the data recorded by the five studied sensor types is evaluated. Finally, the accuracy range (maximum and minimum errors) with different numbers of sensors in each monitoring system is statistically studied. 4.1. Description The ambient temperatures measured by the five developed monitoring systems were compared with those obtained simultaneously by the commercial thermometer EL-USB-2- LASCAR. Different devices used in the experiment are illustrated in Figure 5. The experiment was conducted in a controlled environment in the laboratory of the Civil Engineering Department of the University of Castilla-La Mancha (UCLM) in Ciudad Real, Spain in February 2020. During the experiment, the temperature was controlled by the air conditioning (AC) and divided into the following two scenarios: Scenario 1, in which the temperature was kept constant at 25 ◦ C, and Scenario 2, in which the AC was turned off with the consequent drop in the temperature. The sensor locations were chosen far from windows to avoid the effects of direct sun radiation. During the experiment, the laboratory temperature was recorded for 12 h continuously, with a sampling frequency of 10 s, providing more than 4000 readings in each of the 30 sensor copies of the five monitoring systems as well as in the commercial thermometer.
Buildings 2022,12, 1411 16 of 23 Buildings 2022, 12, x FOR PEER REVIEW 17 of 24 Figure 13. Maximum absolute errors of all possible arrangements of the different sensors in the five developed monitoring systems and in the state-of-the-art thermometers. Figure 13 illustrates that the benefits of adding additional sensors depend to a great extent on the sensor type and its accuracy. In regard to sensors with lower accuracy (such as the BMP180), adding sensors presents higher benefits. For example, the maximum error obtained from measuring temperatures using a unique BMP 180 sensor (4.67%) is reduced to 4.13% when two sensors are considered (11.6% reduction of the error). This error is reduced to 2.26% when eight sensors are considered. Furthermore, the sensors with higher accuracy (such as the SHT35) present lower marginal benefits. For example, in this case, the errors with one unique sensor copy (0.46%) are reduced to 0.44% when two sensor copies are considered (4.3% reduction of the error) and to 0.29% when eight sensor copies are considered. The analysis of Figure 13 additionally illustrates how the maximal errors are reduced with more sensors. The higher the number of sensors averaged, the lower the maximum errors in the reference temperature. In the worst sensor combinations, the accuracy of the FLUKE 971 and EL-USB-2 LASCAR thermometers (0.5 °C) can be achieved when averaging eight SHT21 sensors (concretely, 0.47 °C). The same precision can be obtained directly with any of the studied numbers of the SHT35 sensor. Although the error reduction is not significant, the use of at least three of these sensors is advised to have multiple simultaneous temperature readings. In this case, an accuracy of 0.42 °C is obtained. In the case of the rest of the studied sensors (BMP180, BMP280 and DHT22), an average of more than eight copies is required to achieve an accuracy of 0.5 °C, considering the worst sensor combination. Not all sensor types were easy to work with. During the assembling process, a few sensor types were easily burned out due to variations in the voltage in the circuit. To take this problem into account and to determine the real cost of the monitoring systems, a correction factor (𝐹) was devised, determined by dividing the total number of sensors needed by 30 (number of sensors in each monitoring system). For example, in the case of sensor type SHT21, eight sensors were burned out during the assembling process such that 38 sensors were needed to achieve the targeted 30. Therefore, the correction factor of this type of sensor is 𝐹.= 38 30 = 1.3 ⁄. Assuming a linear response, this parameter can be used to include the effects of the burned-out sensors in the monitoring systems with any number of sensors. The 𝐹 values for the monitoring systems BMP180, BMP280, DHT22, and SHT35 are 1.1, 1.2, 1.0 and 1.0, respectively. The costs of the two selected monitoring system alternatives (SHT21 with eight sensors and SHT35 with three sensors) with maximum errors are reviewed in Table 7. This table includes the prices of the monitoring system elements as follows: (1) sensors: this number is obtained by multiplying the sensors by the corresponding Fc factor; (2) microcontroller; (3) breadboard; and (4) the multiplexer. 0 1 2 3 4 5 12345678 Abs (Max Error) (%) Number of sensors BMP180 BMP280 DHT22 SHT21 SHT35 State of the art therm. Figure 13. Maximum absolute errors of all possible arrangements of the different sensors in the five developed monitoring systems and in the state-of-the-art thermometers. Figure 13 illustrates that the benefits of adding additional sensors depend to a great extent on the sensor type and its accuracy. In regard to sensors with lower accuracy (such as the BMP180), adding sensors presents higher benefits. For example, the maximum error obtained from measuring temperatures using a unique BMP180 sensor (4.67%) is reduced to 4.13% when two sensors are considered (11.6% reduction of the error). This error is reduced to 2.26% when eight sensors are considered. Furthermore, the sensors with higher accuracy (such as the SHT35) present lower marginal benefits. For example, in this case, the errors with one unique sensor copy (0.46%) are reduced to 0.44% when two sensor copies are considered (4.3% reduction of the error) and to 0.29% when eight sensor copies are considered. The analysis of Figure 13 additionally illustrates how the maximal errors are reduced with more sensors. The higher the number of sensors averaged, the lower the maximum errors in the reference temperature. In the worst sensor combinations, the accuracy of the FLUKE 971 and EL-USB-2 LASCAR thermometers (0.5 ◦ C) can be achieved when averaging eight SHT21 sensors (concretely, 0.47 ◦ C). The same precision can be obtained directly with any of the studied numbers of the SHT35 sensor. Although the error reduction is not significant, the use of at least three of these sensors is advised to have multiple simultaneous temperature readings. In this case, an accuracy of 0.42 ◦ C is obtained. In the case of the rest of the studied sensors (BMP180, BMP280 and DHT22), an average of more than eight copies is required to achieve an accuracy of 0.5 ◦ C, considering the worst sensor combination. Not all sensor types were easy to work with. During the assembling process, a few sensor types were easily burned out due to variations in the voltage in the circuit. To take this problem into account and to determine the real cost of the monitoring systems, a correction factor ( FC ) was devised, determined by dividing the total number of sensors needed by 30 (number of sensors in each monitoring system). For example, in the case of sensor type SHT21, eight sensors were burned out during the assembling process such that 38 sensors were needed to achieve the targeted 30. Therefore, the correction factor of this type of sensor is FC.SHT21 = 38 / 30 = 1.3 . Assuming a linear response, this parameter can be used to include the effects of the burned-out sensors in the monitoring systems with any number of sensors. The FC values for the monitoring systems BMP180, BMP280, DHT22, and SHT35 are 1.1, 1.2, 1.0 and 1.0, respectively. The costs of the two selected monitoring system alternatives (SHT21 with eight sensors and SHT35 with three sensors) with maximum errors are reviewed in Table 7. This table includes the prices of the monitoring system elements as follows: (1) sensors: this number is obtained by multiplying the sensors by the corresponding Fcfactor; (2) microcontroller; (3) breadboard; and (4) the multiplexer.
Buildings 2022,12, 1411 17 of 23 Table 7. Cost of the chosen monitoring systems with the least accurate sensors of SHT21 and SHT35. SHT35 SHT21 Components Price (EUR) Nº Price (EUR) Nº Sensors 5.76 3 4.61 11 Breadboard 3.5 1 3.5 1 Arduino 35.5 1 35.5 1 Multiplexer 1.2 1 1.2 1 Clock Sensor 1.3 1 1.3 1 Total Cost (EUR) 58.8 92.1 Information presented in Table 7shows that the total costs of the proposed monitoring systems are EUR 58.8 for SHT35 and EUR 92.1 for SHT21. These costs are similar to commercial alternatives presented in the Table 5with 0.5 ◦ C accuracy (such as EL-USB-2 LASCAR (EUR 50 to 100)) and lower than other thermometers with the same accuracy (such as FLUKE 971 (EUR 350 to 500)). The assembling and programming cost of the monitoring system is not included in Table 7. Depending on the sensor type, the time is 10 min on average per sensor. Coefficient of variation ( R2 ) of the linear regression line between sensor measurements and reference data has been frequently used in the literature to verify the linearity of responses of low-cost sensors [ 60 , 61 ]. In other words, this parameter illustrates how well the measurements of studying sensors agree with the reference values, according to a regression module. A higher R-squared presents an increase in precision of the regression model. This analysis was carried out for the most inaccurate sensor arrangements and is summarized in Figure 14, where the pairwise correlation between sensor measurements and the associated statistical reference for an increasing number of sensors (ranging from one to three) are presented. According to Table 4, the most inaccurate sensor arrangements associated with combinations of one, two, and three units of sensors were selected among from 30, 435, and 4060 possible configurations, respectively. Evaluating the accuracy, the mean value of and individual sensor arrangement were compared with the associated statistical reference. For the combination of each number of sensors, the dependent (sensor data) and independent (statistical reference data) variables were plotted in Figure 14 on the vertical and horizontal axis, respectively. Comparison of R2 values in an individual sensor set demonstrates how effective it is to increase the number of sensors. According to Figure 14, DHT22 provides the lowest linearity for the combination of all the studied number of sensors. For instance, for the case of one sensor, R2 is equal to 0.9882 and reaches 0.9926 when the number of sensors is increased to three. However, when considering a number of sensors up to three, sensors SHT21 and SHT35 provided the best results, as R2= 0.9992 was obtained. Further assessment of the sensors in this figure also proves that the correlation of BMP180 pressure sensors with the associated statistical reference is strong, as the range of 0.9906 ≤R2 BMP180 ≤ 0.9961 was obtained when the number of sensors was increased from one to three. The algorithm in Section 2.2.2 was applied to determine the accuracy of the best sensor combinations for each monitoring system, and the obtained results are summarized in Figure 15. In this figure, the horizontal axis represents the number of sensors considered in different arrangements (ranging from 1 to 8), and the vertical axis shows the absolute minimum error (Abs (Min Error)) generated by all possible combinations, as defined in Table 3. The analysis of Figure 15 illustrates how increasing the number of sensors reduces the minimum errors significantly. This beneficial effect can be observed in the BMP280 monitoring system, as its minimum absolute error is reduced from 0.17 ◦ C for one sensor to 0.006 ◦ C for eight. Figure 15 additionally shows that the most accurate single low-cost sensors SHT21 (0.06 ◦ C) and SHT35 (0.05 ◦ C) are more accurate than the most accurate commercial thermometer (EXTECH EN510 (0.1 ◦C)).
Buildings 2022,12, 1411 18 of 23 Buildings 2022, 12, x FOR PEER REVIEW 19 of 24 Number of sensors 1 2 3 Sensor type BMP180 BMP280 DHT22 SHT21 SHT35 Figure 14. Pairwise correlations between all sensor sets and the associated statistical reference for an increasing number of sensors (ranging from 1 to 3). R values were derived by the least-square regressions. The algorithm in Section 2.2.2 was applied to determine the accuracy of the best sensor combinations for each monitoring system, and the obtained results are summarized in Figure 15. In this figure, the horizontal axis represents the number of sensors considered in different arrangements (ranging from 1 to 8), and the vertical axis shows the absolute minimum error (Abs (Min Error)) generated by all possible combinations, as defined in Table 3. Figure 14. Pairwise correlations between all sensor sets and the associated statistical reference for an increasing number of sensors (ranging from 1 to 3). R 2 values were derived by the leastsquare regressions. Nevertheless, to perform a cost comparison with the most accurate commercial thermometers, three sensors were considered in each monitoring system to enable multiple simultaneous temperature measurements. In this comparison, the two sensors that presented higher accuracy were BMP280 and SHT35. Their accuracies (0.015 and 0.023 ◦ C, respectively) are significantly better than that of the best commercial thermometer reviewed (0.1 ◦C). The cost of the different elements (sensors, microcontroller, breadboard and multiplexer) of aforementioned alternatives (SHT35 and BMP280) is detailed in Table 8.
Buildings 2022,12, 1411 19 of 23 Buildings 2022, 12, x FOR PEER REVIEW 20 of 24 Figure 15. Minimum absolute errors between all possible arrangements of different sensors in the five developed monitoring systems. The analysis of Figure 15 illustrates how increasing the number of sensors reduces the minimum errors significantly. This beneficial effect can be observed in the BMP280 monitoring system, as its minimum absolute error is reduced from 0.17 °C for one sensor to 0.006 °C for eight. Figure 15 additionally shows that the most accurate single low-cost sensors SHT21 (0.06 °C) and SHT35 (0.05 °C) are more accurate than the most accurate commercial thermometer (EXTECH EN510 (0.1 °C)). Nevertheless, to perform a cost comparison with the most accurate commercial thermometers, three sensors were considered in each monitoring system to enable multiple simultaneous temperature measurements. In this comparison, the two sensors that presented higher accuracy were BMP280 and SHT35. Their accuracies (0.015 and 0.023 °C, respectively) are significantly better than that of the best commercial thermometer reviewed (0.1 °C). The cost of the different elements (sensors, microcontroller, breadboard and multiplexer) of aforementioned alternatives (SHT35 and BMP280) is detailed in Table 8. Table 8. Cost of the chosen monitoring systems with the most accurate sensors of SHT35 and BMP280. SHT35 BMP280 Components Price (EUR) Nº Price (EUR) Nº Sensors 5.7 3 3.6 4 Breadboard 3.5 1 3.5 1 Arduino 35.5 1 35.5 1 Multiplexer 1.2 1 1.2 1 Clock Sensor 1.3 1 1.3 1 Total Cost (EUR) 58.6 55.9 The information presented in Table 8 indicates that the total costs of the proposed monitoring systems are EUR 58.6 and 55.9 for SHT35 and BMP280, respectively. These costs are lower than those of the commercial alternatives (such as EXTECH EN510 (EUR 180 to 200) and TESTO 435-3 (EUR 750 to 1200) presented in Table 5; they also presented higher accuracies. As in the case of Table 7, the assembly and programming costs of the monitoring systems are not included in Table 8. The prices presented in Tables 7 and 8 are related to purchases carried out in September 2019 from an electronic store in Spain [62]. To better accomplish a comparison of the sensors presented in Table 4 with the proposed 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 12345678 Abs (Min Error) (%) Number of sensors BMP280 BMP180 DHT22 SHT21 SHT35 Figure 15. Minimum absolute errors between all possible arrangements of different sensors in the five developed monitoring systems. Table 8. Cost of the chosen monitoring systems with the most accurate sensors of SHT35 and BMP280. SHT35 BMP280 Components Price (EUR) Nº Price (EUR) Nº Sensors 5.7 3 3.6 4 Breadboard 3.5 1 3.5 1 Arduino 35.5 1 35.5 1 Multiplexer 1.2 1 1.2 1 Clock Sensor 1.3 1 1.3 1 Total Cost (EUR) 58.6 55.9 The information presented in Table 8indicates that the total costs of the proposed monitoring systems are EUR 58.6 and 55.9 for SHT35 and BMP280, respectively. These costs are lower than those of the commercial alternatives (such as EXTECH EN510 (EUR 180 to 200) and TESTO 435-3 (EUR 750 to 1200) presented in Table 5; they also presented higher accuracies. As in the case of Table 7, the assembly and programming costs of the monitoring systems are not included in Table 8. The prices presented in Tables 7and 8are related to purchases carried out in September 2019 from an electronic store in Spain [ 62 ]. To better accomplish a comparison of the sensors presented in Table 4with the proposed ones (Table 8) in this study, Table 9is presented. This table contains the cost and technical characteristics of both series of sensors in terms of range and accuracy. It can be clearly seen that by adopting the proposed data analysis algorithm (in the Section 2.2.2.) to the measurements of the established monitoring systems, accuracies of 0.023 and 0.015 have been achieved for three sensors of each SHT35 and BMP280, respectively. When comparing prices of the proposed sensor sets with those of the commercial thermometers, a high level of cost efficiency could be observed. As installation of the sets SHT35 and BMP280 costs less than EUR 60, however, most of the commercial ones are higher than EUR 170. The development of accurate and affordable monitoring systems plays an important role in the quality of monitoring projects, especially for the ones with an extended period. Thus, simply by increasing the number of measurements (e.g., low-cost sensors) and at the same time adopting statistical analyses to the obtained data could highly help to carry out an efficient monitoring campaign.
Buildings 2022,12, 1411 20 of 23 Table 9. Comparison of the sensor characteristics. Name SHT35 BMP280 EXTECH EN510 TESTO 435-3 FLUKE 971 EL-USB-2 LASCAR Accuracy (◦C) 0.023 0.015 0.1 0.2 0.5 0.5 Range (◦C) [−40 to 125] [−40 to 85] [−100 to 1300] [−25 to 75] [−20 to 60] [−35 to 80] Price (EUR) 58.8 55.9 180 to 220 750 to 1000 350 to 500 50 to 100 5. Conclusions In this article, a methodology to improve monitoring projects has been proposed through a novel monitoring system. This monitoring system has proven the importance/advantage of increasing the number of sensors/measurements in monitoring projects. To validate performance of the proposed monitoring system, indoor temperatures have been studied experimentally through five developed monitoring systems, and the results have been compared with the associated statistical references and a traditional commercial thermometer. The comparison of three sensors sets, namely, 10, 20 and 30 sensors, has proven that the higher the number of sensors considered, the lower the standard deviation of the measurement, as evidenced by the standard deviation of 10 sensors (0.42) that decreased to 0.32 and 0.29 for the cases of 20 and 30 sensors, respectively. From the results, it can also be concluded that sensors SHT35 and BMP280 have the lowest (0.028 ≤SDSHT35 ≤ 0.066) and highest (0.336 ≤SDBMP280 ≤ 0.404) standard deviation ranges. The proposed algorithm has also indicated that the error information in the sensor catalogues does not correspond to the actual performance of these devices on site (the maximum obtained error of the BMP180 sensor (4.68%) was 57% higher than that presented in its catalogue). Moreover, the accuracy of standard commercial thermometers, such as the FLUKE 971 and EL-USB-2 LASCAR (0.5 ◦ C), has been achieved by averaging eight sensors of SHT21 (concretely, 0.47 ◦ C). The results additionally show that the proposed monitoring system can save up to 88% on costs compared to the most expensive commercial thermometers when choosing the best combinations of sensors. Future studies should address wireless communication protocols and on-site demonstration of sensor kits for long-term thermal and structural monitoring of buildings. Author Contributions: Conceptualization, B.M. and J.A.L.-G.; methodology, F.J.C.P.; software, B.M.; validation, B.M. and S.K.; formal analysis, B.M. and S.K; investigation, B.M.; resources, B.M.; data curation, S.K. and B.M.; writing—original draft preparation, B.M.; visualization, S.K.; supervision, F.J.C.P.; project administration, J.A.L.-G.; funding acquisition, J.A.L.-G. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded by the Spanish Ministry of Economy and Competitiveness (grant number BIA2013-47290-R, BIA2017-86811-C2-1-R, and BIA2017-86811-C2-2-R) and by the Universidad de Castilla La Mancha (grant number 2018-COB-9092). Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: No new data were created or analyzed in this study. Data sharing is not applicable to this article. Acknowledgments: The authors are indebted to the Spanish Ministry of Economy and Competitiveness for the funding provided through the research projects BIA2017-86811-C2-1-R, directed by José Turmo and BIA2017-86811-C2-2-R, directed by JoséAntonio Lozano-Galant. All these projects are founded with FEDER funds. It is also to be noted that funding for this research has been provided to Behnam Mobaraki for his Ph.D. program by the Spanish Agencia Estatal de Investigación del Ministerio de Ciencia Innovación y Universidades (grant number: 2018-COB-9092). Conflicts of Interest: The authors declare no conflict of interest.
Buildings 2022,12, 1411 21 of 23 References 1. Mobaraki, B.; Ma, H.; Lozano Galant, J.A.; Turmo, J. Structural Health Monitoring of 2D Plane Structures. Appl. Sci. 2021 ,11, 2000. [CrossRef] 2. Makoond, N.; Pelà, L.; Molins, C.; Roca, P.; Alarcón, D. Automated Data Analysis for Static Structural Health Monitoring of Masonry Heritage Structures. Struct. Control Heal. Monit. 2020,27, 1–25. [CrossRef] 3. Jiang, S.F.; Qiao, Z.H.; Li, N.L.; Luo, J.B.; Shen, S.; Wu, M.H.; Zhang, Y. Structural Health Monitoring System Based on FBG Sensing Technique for Chinese Ancient Timber Buildings. Sensors 2020,20, 110. [CrossRef] [PubMed] 4. Lyapin, A.; Beskopylny, A.; Meskhi, B. Structural Monitoring of Underground Structures in Multi-Layer Media by Dynamic Methods. Sensors 2020,20, 5241. [CrossRef] [PubMed] 5. Minardo, A.; Catalano, E.; Coscetta, A.; Zeni, G.; Di Maio, C.; Vassallo, R.; Picarelli, L.; Coviello, R.; Macchia, G.; Zeni, L. Long-Term Monitoring of a Tunnel in a Landslide Prone Area by Brillouin-Based Distributed Optical Fiber Sensors. Sensors 2021 , 21, 7032. [CrossRef] [PubMed] 6. Xia, Y.; Lei, X.; Wang, P.; Sun, L. Artificial Intelligence Based Structural Assessment for Regional Short-and Medium-Span Concrete Beam Bridges with Inspection Information. Remote Sens. 2021,13, 3687. [CrossRef] 7. Komarizadehasl, S.; Mobaraki, B.; Lozano-Galant, J.A.; Turmo, J. Development of a Low-Cost System for the Accurate Measurement of Structural Vibrations. Sensors 2021,21, 6191. [CrossRef] [PubMed] 8. Nestor, T.; De Dieu, N.J.; Jacques, K.; Yves, E.J.; Iliyasu, A.M.; Abd El-Latif, A.A. A Multidimensional Hyperjerk Oscillator: Dynamics Analysis, Analogue and Embedded Systems Implementation, and Its Application as a Cryptosystem. Sensors 2020 , 20, 83. [CrossRef] 9. Goh, N.W.J.; Poh, J.J.; Yeo, J.Y.; Aw, B.J.J.; Lai, S.C.; Cheng, J.J.W.; Tan, C.Y.L.; Gan, S.K.E. Design and Development of a Low Cost, Non-Contact Infrared Thermometer with Range Compensation. Sensors 2021,21, 3817. [CrossRef] 10. Luna, A.M.; Lineros, M.L.; Gualda, J.E.; Cervera, J.V.G.; Luna, J.M.M. Assessing the Best Gap-Filling Technique for River Stage Data Suitable for Low Capacity Processors and Real-Time Application Using Iot. Sensors 2020,20, 6354. [CrossRef] 11. Nemoto, T.; Mohan, R.E. Heterogeneous Multirobot Cleaning System: State and Parameter Estimation. Autom. Constr. 2020 , 109, 102968. [CrossRef] 12. Lockridge, G.; Dzwonkowski, B.; Nelson, R.; Powers, S. Development of a Low-Cost Arduino-Based Sonde for Coastal Applications. Sensors 2016,16, 528. [CrossRef] [PubMed] 13. Yedra Álvarez, E.; Ferrández Vega, D.; Saiz Martínez, P.; Morón Fernández, C. Low Cost System for Measuring the Evolution of Mechanical Properties in Cement Mortars as a Function of Mixing Water. Constr. Build. Mater. 2020,244, 118127. [CrossRef] 14. Frei, M.; Deb, C.; Stadler, R.; Nagy, Z.; Schlueter, A. Wireless Sensor Network for Estimating Building Performance. Autom. Constr. 2020,111, 103043. [CrossRef] 15. Arbabpour Bidgoli, M.; Golroo, A.; Sheikhzadeh Nadjar, H.; Ghelmani Rashidabad, A.; Ganji, M.R. Road Roughness Measurement Using a Cost-Effective Sensor-Based Monitoring System. Autom. Constr. 2019,104, 140–152. [CrossRef] 16. Rashid, K.M.; Louis, J.; Fiawoyife, K.K. Wireless Electric Appliance Control for Smart Buildings Using Indoor Location Tracking and BIM-Based Virtual Environments. Autom. Constr. 2019,101, 48–58. [CrossRef] 17. Dave, B.; Buda, A.; Nurminen, A.; Främling, K. A Framework for Integrating BIM and IoT through Open Standards. Autom. Constr. 2018,95, 35–45. [CrossRef] 18. Porras Soriano, R.; Mobaraki, B.; Lozano-Galant, J.A.; Sanchez-Cambronero, S.; Prieto Muñoz, F.; Gutierrez, J.J. New Image Recognition Technique for Intuitive Understanding in Class of the Dynamic Response of High-Rise Buildings. Sustainability 2021 , 13, 3695. [CrossRef] 19. Lucchi, E.; Pereira, L.D.; Andreotti, M.; Malaguti, R.; Cennamo, D.; Calzolari, M.; Frighi, V. Development of a Compatible, Low Cost and High Accurate Conservation Remote Sensing Technology for the Hygrothermal Assessment of Historic Walls. Electronics 2019,8, 643. [CrossRef] 20. Andreotti, M.; Calzolari, M.; Davoli, P.; Pereira, L.D.; Lucchi, E.; Malaguti, R. Design and Construction of a New Metering Hot Box for the in Situ Hygrothermal Measurement in Dynamic Conditions of Historic Masonries. Energies 2020 ,13, 2950. [CrossRef] 21. Mobaraki, B.; Lozano-Galant, F.; Soriano, R.P.; Pascual, F.J.C. Application of Low-Cost Sensors for Building Monitoring: A Systematic Literature Review. Buildings 2021,11, 336. [CrossRef] 22. Navarro, I.J.; Penadés-Plà, V.; Martínez-Muñoz, D.; Rempling, R.; Yepes, V. Life Cycle Sustainability Assessment for Multi-Criteria Decision Making in Bridge Design: A Review. J. Civ. Eng. Manag. 2020,26, 690–704. [CrossRef] 23. Tseng, K.H.; Chung, M.Y.; Chen, L.H.; Chang, P.Y. Green Smart Campus Monitoring and Detection Using LoRa. Sensors 2021 , 21, 6582. [CrossRef] [PubMed] 24. Assaf, E.; Einem, C.; Cadena, C.; Siegwart, R.; Tschopp, F. High-Precision Low-Cost Gimballing Platform for Long-Range Railway Obstacle Detection. Sensors 2022,22, 474. [CrossRef] 25. Badura, M.; Batog, P.; Drzeniecka-Osiadacz, A.; Modzel, P. Evaluation of Low-Cost Sensors for Ambient PM2.5 Monitoring. J. Sensors 2018,2018, 5096540. [CrossRef] 26. Mead, M.I.; Popoola, O.A.M.; Stewart, G.B.; Landshoff, P.; Calleja, M.; Hayes, M.; Baldovi, J.J.; McLeod, M.W.; Hodgson, T.F.; Dicks, J.; et al. The Use of Electrochemical Sensors for Monitoring Urban Air Quality in Low-Cost, High-Density Networks. Atmos. Environ. 2013,70, 186–203. [CrossRef]
Buildings 2022,12, 1411 22 of 23 27. Piedrahita, R.; Xiang, Y.; Masson, N.; Ortega, J.; Collier, A.; Jiang, Y.; Li, K.; Dick, R.P.; Lv, Q.; Hannigan, M.; et al. The next Generation of Low-Cost Personal Air Quality Sensors for Quantitative Exposure Monitoring. Atmos. Meas. Tech. 2014 ,7, 3325–3336. [CrossRef] 28. Spinelle, L.; Gerboles, M.; Villani, M.G.; Aleixandre, M.; Bonavitacola, F. Field Calibration of a Cluster of Low-Cost Available Sensors for Air Quality Monitoring. Part A: Ozone and Nitrogen Dioxide. Sens. Actuators B Chem. 2015 ,215, 249–257. [CrossRef] 29. Ali, A.S.; Zanzinger, Z.; Debose, D.; Stephens, B. Open Source Building Science Sensors (OSBSS): A Low-Cost Arduino-Based Platform for Long-Term Indoor Environmental Data Collection. Build. Environ. 2016,100, 114–126. [CrossRef] 30. Bamodu, O.; Xia, L.; Tang, L. An Indoor Environment Monitoring System Using Low-Cost Sensor Network. Energy Procedia 2017 , 141, 660–666. [CrossRef] 31. Mijling, B.; Jiang, Q.; De Jonge, D.; Bocconi, S. Field Calibration of Electrochemical NO2 Sensors in a Citizen Science Context. Atmos. Meas. Tech. 2018,11, 1297–1312. [CrossRef] 32. Mobaraki, B.; Komarizadehasl, S.; Castilla Pascual, F.J.; Lozano-galant, J.A.; Porras Soriano, R. A Novel Data Acquisition System for Obtaining Thermal Parameters of Building Envelopes. Buildings 2022,12, 670. [CrossRef] 33. Komarizadehasl, S.; Komary, M.; Alahmad, A.; Lozano-galant, J.A.; Ramos, G.; Turmo, J. A Novel Wireless Low-Cost Inclinometer Made from Combining the Measurements of Multiple MEMS Gyroscopes and Accelerometers. Sensors 2022 ,22, 5605. [CrossRef] [PubMed] 34. Mobaraki, B.; Vaghefi, M. Numerical Study of the Depth and Cross-Sectional Shape of Tunnel under Surface Explosion. Tunn. Undergr. Sp. Technol. 2015,47, 114–122. [CrossRef] 35. Mobaraki, B.; Vaghefi, M. Effect of the Soil Type on the Dynamic Response of a Tunnel under Surface Detonation. Combust. Explos. Shock Waves 2016,52, 363–370. [CrossRef] 36. Huerta, R.C.; Moreu, F.; Galant, J.A.L. Aerial Tramway Sustainable Monitoring with an Outdoor Low-Cost Efficientwireless Intelligent Sensor. Sustainability 2021,13, 6340. [CrossRef] 37. Xia, Y.; Lei, X.; Wang, P.; Sun, L. A Data-Driven Approach for Regional Bridge Condition Assessment Using Inspection Reports. Struct. Control Heal. Monit. 2021, e2915. [CrossRef] 38. Xia, Y.; Lei, X.; Wang, P.; Liu, G.; Sun, L. Long-Term Performance Monitoring and Assessment of Concrete Beam Bridges Using Neutral Axis Indicator. Struct. Control Heal. Monit. 2020,27, 1–18. [CrossRef] 39. Marzouk, M.; Abdelaty, A. BIM-Based Framework for Managing Performance of Subway Stations. Autom. Constr. 2014 ,41, 70–77. [CrossRef] 40. Mobaraki, B.; Komarizadehasl, S.; Castilla Pascual, F.J.; Lozano-Galant, J.A. Open Source Platforms for Monitoring Thermal Parameters of Structures. In Proceedings of the Bridge Maintenance, Safety, Management, Life-Cycle Sustainability and Innovations, Sapporo, Japan, 28 June–2 July 2020; pp. 3892–3896. 41. dos Santos, U.J.L.; Pessin, G.; da Costa, C.A.; da Rosa Righi, R. AgriPrediction: A Proactive Internet of Things Model to Anticipate Problems and Improve Production in Agricultural Crops. Comput. Electron. Agric. 2019,161, 202–213. [CrossRef] 42. Suárez, J.I.; Arroyo, P.; Lozano, J.; Herrero, J.L.; Padilla, M. Bluetooth Gas Sensing Module Combined with Smartphones for Air Quality Monitoring. Chemosphere 2018,205, 618–626. [CrossRef] 43. Zhan, Q.; Pungercar, V.; Musso, F.; Ni, H.; Xiao, Y. Hygrothermal Investigation of Lightweight Steel-Framed Wall Assemblies in Hot-Humid Climates: Measurement and Simulation Validation. J. Build. Eng. 2021,42, 103044. [CrossRef] 44. Ibrahim, M.; Moselhi, O. Inertial Measurement Unit Based Indoor Localization for Construction Applications. Autom. Constr. 2016,71, 13–20. [CrossRef] 45. Netto, G.T.; Arigony-Neto, J. Open-Source Automatic Weather Station and Electronic Ablation Station for Measuring the Impacts of Climate Change on Glaciers. HardwareX 2019,5, e00053. [CrossRef] 46. Gauthier, S. Investigating the Probability of Behavioural Responses to Cold Thermal Discomfort. Energy Build. 2016 ,124, 70–78. [CrossRef] 47. Guo, H.; Ferrara, M.; Coleman, J.; Loyola, M.; Meggers, F. Simulation and Measurement of Air Temperatures and Mean Radiant Temperatures in a Radiantly Heated Indoor Space. Energy 2020,193, 116369. [CrossRef] 48. Mobaraki, B.; Komarizadehasl, S.; Javier, F.; Pascual, C.; Antonio, J. Determination of Environmental Parameters Based on Arduino Based Low-Cost Sensors. In Proceedings of the Recent Trends in Construction and Education RTCEE International Conference, Kuta, Indonesia, 15–17 July 2020; pp. 10–11. 49. Friends-of-Fritzing Fritzing. Available online: https://fritzing.org/home/ (accessed on 1 August 2022). 50. SE & Co. KGaA Testo. Available online: https://www.testo.com/en-US/ (accessed on 1 August 2022). 51. Fluke Company. Available online: https://www.fluke.com/ (accessed on 1 August 2022). 52. Bozdo˘gan, H. Species Richness and Composition of Neuroptera in the Forests Fregments of the Taurus Mountains Range, Turkey. Saudi J. Biol. Sci. 2020,27, 1201–1207. [CrossRef] 53. Baffa, M.D. Assessing Overall Thermal Conductance Value of Low-Rise Residential Home Exterior Above-Grade Walls Using Infrared Thermography Methods. Eng. Technol. Int. J. Civ. Environ. Eng. 2018,12, 626–636. 54. Quistin, P.; Fournely, E.; Bargy, J.; Cador, L.; Romana, L.; Quistin, P.; Fournely, E.; Bargy, J.; Cador, L.; Lamadon, T.; et al. Impact of Environment on Timber Structures, Bois Duramhen 971, the Case of Guadeloupe (F. W. I.). WCTE. 2019. Available online: https://hal.univ-antilles.fr/hal-02069472/document (accessed on 1 August 2022).
Buildings 2022,12, 1411 23 of 23 55. Amini, M.; Pishevar, A.R.; Yaghoubi, M. Experimental Study of Frost Formation on a Fin-and-Tube Heat Exchanger by Natural Convection. Int. J. Refrig. 2014,46, 37–49. [CrossRef] 56. Markal, B.; Aydin, O.; Avci, M. An Experimental Study on the Effect of the Valve Angle of Counter-Flow Ranque-Hilsch Vortex Tubes on Thermal Energy Separation. Exp. Therm. Fluid Sci. 2010,34, 966–971. [CrossRef] 57. Extech. EXTECH EN510. Available online: https://www.extech.com/products/EN510 (accessed on 1 August 2022). 58. IBM SPSS. Available online: https://www.ibm.com/analytics/spss-statistics-software/ (accessed on 1 August 2022). 59. Pett, M. Nonparametric Statistics for Health Care Research, 2nd ed.; SAGE: London, UK, 2016. 60. Wang, Y.; Li, J.; Jing, H.; Zhang, Q.; Jiang, J.; Biswas, P. Laboratory Evaluation and Calibration of Three Low-Cost Particle Sensors for Particulate Matter Measurement. Aerosol Sci. Technol. 2015,49, 1063–1077. [CrossRef] 61. Karagulian, F.; Barbiere, M.; Kotsev, A.; Spinelle, L.; Gerboles, M.; Lagler, F.; Redon, N.; Crunaire, S.; Borowiak, A. Review of the Performance of Low-Cost Sensors for Air Quality Monitoring. Atmosphere 2019,10, 506. [CrossRef] 62. Electrobass. Available online: https://www.electrobassciudadreal.com/ (accessed on 1 August 2022).