Next Article in Journal
Pilot Study: Exploring the Feasibility of Individual Voluntary Waiting Period Settings Using Postpartum Recovery Indicators in Dairy Cows
Previous Article in Journal
Effects of Macronutrients in Ten Different Plant Species on the Food Choice and Growth Performance of Achatina fulica
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

IoT Monitoring of Indoor Air Quality in Dairy Goat Barns: The Role of Building Characteristics and Litter Management

1
Department of Agricultural and Environmental Sciences, University of Milan, Via Celoria 2, 20133 Milano, Italy
2
Department of Environmental Science and Policy, University of Milan, Via Celoria 26, 20133 Milano, Italy
3
Centre of Applied Studies for the Sustainable Management and Protection of Mountain Areas (CRC Ge.S.Di.Mont.), University of Milan, Via Morino 8, 25048 Edolo, Italy
*
Author to whom correspondence should be addressed.
Animals 2025, 15(22), 3332; https://doi.org/10.3390/ani15223332
Submission received: 28 July 2025 / Revised: 22 October 2025 / Accepted: 24 October 2025 / Published: 19 November 2025
(This article belongs to the Section Animal Welfare)

Simple Summary

Although the air quality inside barns plays a significant role in animal welfare, there is still limited information available regarding dairy goat barns. To fill this knowledge gap, we studied two goat farms in northern Italy in both summer and winter. The farms had different types of buildings and cleaned the bedding at different frequencies. We used smart sensors, known as Internet of Things (IoT) devices, to measure air quality by tracking carbon dioxide, ammonia, particulate matter, temperature and humidity. Our findings revealed that the design of the barns, particularly the management of openings such as windows, along with the frequency of bedding changes, and the season, had a significant impact on air quality parameters. On both farms, air quality remained within the recommended levels for the health and comfort of the goats. However, temperatures were quite low on one farm during winter, which could have stressed the animals. This study demonstrates the impact of different factors on environmental conditions within goat barns and shows how smart farming technology can assist farmers in monitoring these conditions, thereby improving the animals’ care and comfort.

Abstract

Air quality in livestock housings impacts animal welfare; however, information on air quality in dairy goat barns is still limited. The air quality and environmental conditions of two farms in northern Italy were monitored for seven days after litter renewal in both summer and winter. The farms had different barn designs and litter replacement frequencies. Internet of Things (IoT) sensors were used to measure CO2, NH3, PM2.5, temperature and humidity. Results suggest that building structure, particularly the management of openings, along with litter replacement frequency, and season, significantly affect gas concentrations, while PM2.5 seems to be more related to the external conditions. The recommended thresholds for goat health and welfare were all met (537 vs. 778 ppm for CO2, 1.78 vs. 3.29 ppm for NH3 and 3.4 vs. 12.7 µg m−3 for PM2.5 in Farms A and B, respectively). The low average temperature humidity index values recorded in winter at Farm A (45.9) suggest potential cold stress, which could be mitigated through improved barn opening management. Our research introduces a novel use of IoT sensors in the frame of precision livestock farming to monitor air quality in goat barns, allowing data-driven interventions to improve animal welfare.

1. Introduction

In the European dairy goat sector, intensive and semi-intensive farming systems have become widespread, especially for highly productive breeds [1]. At the same time, increased consumer awareness of animal welfare and the need to adapt to EU regulations on the hygiene of food of animal origin have led to the adoption of farming techniques that take these aspects into account [1].
Animal welfare is negatively affected by poor air quality, e.g., when high concentrations of certain hazardous pollutants are present, because these substances are generally recognized as a threat to health and safety or as a stress factor. In farm environments, the most studied gaseous pollutants affecting animal welfare are NH3, CO2, and H2S, but also particulate matter such as PM2.5–PM10 [2]. High concentrations of NH3, in particular, have been shown to significantly reduce locomotor and feeding behavior [3,4] and are often considered indicators of a pathological condition. They are also associated with respiratory problems and reduced weight gain [4]. Adverse environmental conditions can also compromise animal welfare: for example, Temperature Humidity Index (THI) values above 70 increase the risk of heat stress, while at THI values below 55, goats begin to suffer from cold stress [5].
The air quality and ambient conditions in barns are influenced by multiple factors, including building characteristics, ventilation rate, litter management, animal species, age, diet, stocking density and activity level [2]. In Italy, dairy goats are commonly housed in naturally ventilated barns that rely on natural airflow rather than mechanical systems, causing ventilation rates to fluctuate with building orientation, structural design, external weather conditions, and the time of day and season [2,6]. Such variability can lead to elevated gas concentrations, with direct implications for goat welfare.
Air pollutant monitoring in livestock buildings has traditionally relied on advanced techniques, such as photoacoustic spectroscopy (PAS), Fourier transform infrared spectroscopy (FTIR), tunable diode laser absorption (TDLA) spectroscopy, and chemiluminescence analyzers [7,8,9,10]. While highly accurate, these instruments are expensive, labor-intensive, and unsuitable for long-term use in harsh environments, which limits their use in an agricultural context [11]. Recently, simpler sensor-based systems (e.g., electrochemical sensors) have gained traction due to their capacity for continuous measurements, lower costs and ease of use [12,13,14,15,16] and are increasingly applied within Precision Livestock Farming (PLF) frameworks [17]. Although extensive research on indoor air quality monitoring has been conducted for pigs, cattle, and poultry [17,18,19,20], as well as studies conducted on large panels of farms [21], evidence for the dairy goat sector remains limited, with only a few studies published to date [22,23,24].The aim of this study is to evaluate air quality in goat farms as a function of management and environmental factors: (i) building characteristics and management, (ii) season and time of day, and (iii) litter renewal frequency. Additionally, the study explored the innovative use of low-cost and easy-to-use devices for continuous monitoring of air quality and environmental conditions in dairy goat barns.

2. Materials and Methods

2.1. The Monitored Barns

The monitored Farms (A and B) were located in the Lombardy Region (Northern Italy) and raised Alpine dairy goats housed on deep litter (Figure A1). Average weather conditions in winter and summer are reported in Table 1. The housing area was 20–25 m long on both farms.
The farms differed in flock sizes, building design and litter management (Table 1). At both farms, stocking density and airspace complied with the recommended thresholds of 1.5–2 m2 head−1 and 7 m3 head−1, respectively [1]. The air inlet surface (barn windows and gates surfaces) was greater in summer on both farms, due to more open windows and gates, and in both seasons, this parameter was higher on Farm A. The air outlet surface (the upper roof opening surface) was also higher on Farm A; the slight seasonal variation was only due to the different number of goats on this farm. The farms also differed in litter management, particularly in the frequency of renewal (Table 1). On Farm A, litter was renewed more frequently in summer than in winter. Higher water intake by the animals leads to faster soiling of the litter, and fly and parasite counts were greater during the warm season [25].
On Farm A, during the winter, the goats were pregnant and non-lactating; the daily individual amount of the administered diet was about 2.15 kg as fed (1.88 kg dry matter, DM), consisting of meadow hay (74% of total DM), lucerne hay (pelleted), and steam-rolled barley and maize. The dietary crude protein (CP) was 12% DM. During the summer, the goats were in lactation and were fed a diet (2.5 kg DM) with a lower forage-to-concentrate ratio (58%) and a lower CP content (10.5% on DM). On Farm B, both in winter and summer, the goats were lactating and were fed a diet (3.6 kg DM) with a forage-to-concentrate ratio of about 60%, consisting of meadow hay, alfalfa hay and a commercial concentrate mix. The dietary crude protein (CP) was 16.6% DM. The individual milk yield (kg d−1) and milk urea content (mg dL−1) on Farm A (summer) were, on average, 2.3 and 33.7; on Farm B, the values recorded were 3.3 and 30.1 and 4.0 and 37.0 during winter and summer, respectively.

2.2. Monitoring Units

Monitoring was carried out in 2023 in two different seasons (winter and summer) by installing two monitoring units inside the barns. In both seasons, monitoring was carried out for seven days after litter renewal. In addition, on Farm A, monitoring was repeated when litter was 60- (summer) or 90 day-old (winter). The monitoring units were protected by a steel cage and positioned 7–8 m apart at a height of 1.3 m. The monitoring units (N11, IBT Systems, Milano, Italy) were powered by a 12 V battery (lasting for about 20 days) and sent data every 10 s to a gateway, which averaged data every 10 min and sent it to a cloud. Recorded data was available in real time via a dashboard and smartphone application. Temperature, relative humidity, particulate matter (PM2.5 and PM10), NH3, H2S and CO2 sensors were installed on the monitoring units. The sensor’s characteristics are shown in Table 2. A detailed description of the technology of communication, energy harvesting, connection between parts, validation and calibration procedure, and cost of the system is available in [26].
In addition, outdoor temperature and relative humidity were obtained by the meteorological station closest to the farms (700 m from Farm A and 1870 m from Farm B), while outdoor PM2.5 concentration was obtained only by the meteorological station close to Farm A. These meteorological stations were part of the network of the Regional Agency for Environmental Protection of Lombardy (ARPAL).

2.3. Data Processing and Statistical Analyss

THI was calculated according to the equation developed by [27]:
T H I = 1.8   ×   T + 32 [ 0.55 0.0055   ×   R H × 1.8   ×   T 26.8 ]
where T = air temperature (C°), RH = relative humidity (%). Both parameters were measured by the monitoring units installed inside the barns.
Because the mean concentrations of CO2, NH3, PM2.5 and THI were temporally autocorrelated and hierarchically structured as they represented repeated measures within the same day and farm, they were analyzed with linear mixed-effects models (LMMs). Three different model types were used depending on the experimental design and the comparison of interest. The first set of models compared air quality parameters between the two farms during periods when the litter was fresh, i.e., on the day of litter renewal and in the following 6 days. The general model structure was:
response ~ Farm + sin(hour) × cos(hour) + (1 | Day)
Here, Farm was included as a two-level fixed effect, while Day was treated as a random factor to account for repeated measurements within days. The sine and cosine transformations of time and their interaction epresented the first Fourier term, allowing the model to capture circadian (24 h) cycles in gas concentrations [28].
Temporal autocorrelation among residuals within each day was modeled using a first-order autoregressive structure [corAR(1)], and potential heteroscedasticity between farms was accounted for by specifying a varIdent variance structure.
The second set of models was fitted to evaluate possible differences in air quality at different times of the day; moments characterized by opposite conditions were considered: periods of high animal activity and opening of the barn, identified during the daytime, and periods of low or no animal activity and closing of the barn, identified during the nighttime (i.e., daytime = 10 a.m.–2 p.m. and nighttime = 10 p.m.–2 a.m.). In both seasons, the average percentage of active animals (estimated by observing the animals using a scan sampling technique at 15 min scan intervals) was 50% during daytime and 29.5% during nighttime.
These models were fitted separately for each farm, and their general structure was
response ~ Period × Season + sin(hour) × cos(hour) + (1 | Day/Period)
where Period and Season are dichotomous variables accounting for day vs. night and summer vs. winter, respectively. Their interaction was also included to account for differential effects of the period in different seasons. Random intercepts were included for Day nested within Period. Autocorrelation within Day/Period was modeled using a corAR(1) process, while heterogeneity of residual variance between combinations of Season and Period was handled using a varIdent variance structure.
Finally, on Farm A, where litter renewal was performed every 60–90 days, the effect of litter age on the concentration of gases and PM2.5 was analyzed in a third set of models with a general structure:
response ~ litter_condition + sin(hour) × cos(hour) + (1 | Days_since_litter_change)
Here, Days_since_litter_change represents the number of days elapsed since the last litter replacement, while litter_condition is a categorical variable grouping consecutive days into two levels (fresh vs. aged litter). As in the other models, we modeled temporal autocorrelation with a corAR(1) structure and accounted for potential differences in residual variance among levels of litter_condition using a varIdent function.
For each dependent variable and model type, we tested the significance of fixed effects using marginal ANOVA (type II sums of squares). Model assumptions were verified by inspecting residuals for homoscedasticity, normality, and absence of patterns across time.
All statistical analyses were performed in R version 4.3.2 [29] using the package nlme [30]. All results are presented as model estimates (mean ± SE) derived from the final fitted models.

3. Results

3.1. Air Quality and Ambient Conditions During the First Seven Days After Litter Renewal

A descriptive presentation of the monitored parameters is shown in Figure 1 as an hourly average over a 24 h period of the seven days after litter renewal.
The average CO2 concentrations during the 6 days after litter renewal were similar in the two farms during summer (monitoring period from June to August 2023; mean ± SE: 534.7 ± 2.98 ppm and 625.8 ± 3.64 ppm on Farms A and B, respectively; Figure 1a), whereas higher CO2 concentrations were observed on Farm B during the winter season (monitoring period from January to March 2023; mean ± SE: 538.5 ± 1.78 ppm and 946.5 ± 5.70 ppm on Farms A and B, respectively; Figure 1b). The average values of NH3 were also similar at the two farms in summer (mean ± SE: 1.95 ± 0.02 ppm and 1.78 ± 0.03 ppm on Farms A and B, respectively; Figure 1c), but showed large differences in winter (mean ± SE: 1.61 ± 0.02 ppm and 4.97 ± 0.08 ppm on Farms A and B, respectively; Figure 1d), especially at Farm B, where NH3 concentrations reached a maximum value of 12.6 ppm (Figure A1). PM2.5 concentrations were lower in summer than in winter on both Farms in the first 6 days after litter renewal (mean ± SE 10.2 ± 0.28 µg m−3 vs. 36.6 ± 0.68 µg m−3 at Farm A and 10.8 ± 0.39 µg m−3 vs. 14.9 ± 0.52 µg m−3 at Farm B in summer and winter, respectively; Figure 1e,f). In summer, PM2.5 concentrations were similar on both farms, and the trends were relatively constant, except for two records at Farm B (maximum PM2.5 concentration = 167.5 µg m−3, as shown in Figure A2). The average external concentration of particulate matter was 8 µg m−3 at Farm A in summer. In winter, the worst conditions were recorded at Farm A, with a maximum PM2.5 concentration of 190 µg m−3 (Figure A2). In this season, an external PM2.5 concentration of 31 µg m−3 was recorded at this farm.
During summer, the THI was relatively constant at Farm A, whereas at Farm B it decreased with increasing litter age due to the meteorological conditions of the monitored days (Figure 1g). The mean summer THI values (mean ± SE: 71.5 ± 0.14 and 72.6 ± 0.19 at Farms A and B, respectively) were similar between the two farms, as were the maximum THI values recorded in this season (80.6 and 81.5 at Farms A and B, respectively, as shown in Figure A2). The average THI values were similar to outdoor values, measuring 71 on both farms. In winter, the average trend of THI was very different on the two farms: 45.9 ± 0.17 and 60.8 ± 0.08 (mean ± SE on Farms A and B, respectively; Figure 1h), remaining more constant and reaching higher values at Farm B and showing large variations and much lower values at Farm A. In particular, in the latter farm, critical environmental conditions were recorded (i.e., minimum THI value = 34.3 as shown in Figure A2), suggesting a probable cold stress situation. The average indoor THI at Farm A closely matched the outdoor value at 45. In contrast, Farm B had a higher indoor THI than the outdoor average, measuring 53. H2S was always around 0–0.1 ppm, well below the suggested critical threshold for H2S, which is set at 2.5 ppm [1]; however, during litter renewal, H2S concentrations between 0.7 and 2.1 ppm were recorded for short periods (10–20 min) but in the absence of animals in the barn.

3.2. Comparison Between Farms When the Litter Was of the Same Age

For all the variables analyzed, their interaction between Sin(hour) and Cos(hour) had significant effects (Table 3), confirming a pronounced diurnal cycle. CO2 and NH3 concentrations were significantly higher on Farm B than on Farm A (+246.45 ± 40.39 ppm; Table 3 and Figure 2a, and +1.73 ± 0.40 ppm; Table 3 and Figure 2b, respectively), whereas PM2.5 showed lower average values on Farm B (−10.45 ± 4.64 µg m−3; Table 3 and Figure 2c). In contrast, THI exhibited higher mean values on Farm B (+8.31 ± 3.65; Table 3 and Figure 2d). The intra-daily temporal correlation coefficients (φ) estimated through the AR(1) structure ranged from 0.74 for PM2.5 to 0.9996 for THI, indicating strong temporal autocorrelation, particularly for the microclimatic variables. Residual variances differed between farms, with greater variability observed on Farm B for CO2, NH3, and PM2.5. Conversely, THI showed slightly lower residual variance on Farm B compared with Farm A. Overall, the models revealed clear farm-specific differences and consistent diurnal patterns across all variables, suggesting coherent temporal dynamics between gaseous emissions and environmental conditions.

3.3. Effect of Season and Time of Day Within Farm

Both farms exhibited a clear sinusoidal trend of all variables throughout the day (Table 4). For CO2, significant seasonal effects were observed on Farm B where winter concentrations were markedly higher than those recorded in summer, both during the day and at night (Table 4, Figure 3b). On Farm A, CO2 did not vary significantly between periods of the day in both seasons (Table 4, Figure 3a). No significant period–by season interaction effects were detected, indicating that there was no day-night difference in CO2 concentrations in both seasons (Table 4, Figure 3a). On Farm B, NH3 concentrations were significantly higher in winter than in summer, both during the day and at night (Table 4, Figure 3d). The period by season interaction indicated a not significant day–night difference in NH3 concentrations in both seasons. On Farm A, neither seasonal nor period effects were significant (Table 4, Figure 3c). PM2.5 concentrations were significantly higher in winter than in summer on Farm A, both during the day and at night (Table 4, Figure 3e). On Farm B, seasonal and period effects were not significant (Table 4, Figure 3f). For THI, both farms showed highly significant seasonal effects (Table 4, Figure 3g,h), with lower values in winter than in summer (Table 4). Regarding the period by season interaction no significant interaction was observed in both Farms.

3.4. Effect of Litter Age Within Season

In summer, CO2 concentrations were significantly higher with the old litter than with the new one (Table 5, Figure 4a), with clear daily oscillations associated with both sine and cosine terms, indicating pronounced daily cycles in CO2 emissions (Table 5). NH3 concentrations tended to increase with the age of the litter (Table 5, Figure 4c) and showed a significant sinusoidal daily pattern (Table 5). Conversely, PM2.5 was not significantly affected by the age of the litter (Table 5, Figure 4e). In winter, CO2 and NH3 concentrations were significantly influenced by the age of the litter (Table 5, Figure 4b,d), with higher levels recorded at the end of the period. For PM2.5, concentrations were significantly lower at the end of the period (Table 5, Figure 4f), while no significant daily patterns were observed.

4. Discussion

4.1. THI

Although the mean THI values of both farms remained within the thermoneutral range of goats (i.e., between 55 and 70 [5]), the maximum summer values showed a critical condition predisposing to heat stress. in winter, critical environmental conditions were recorded on Farm A (i.e., minimum THI value = 34.3 as shown in Figure A1), suggesting a probable cold stress situation.
Both monitored farms were naturally ventilated. The indoor environmental conditions revealed the importance of building design and the management of air inlet and outlet surfaces (i.e., openings). These factors played a crucial role in regulating ventilation and influencing the THI. Monitoring of environmental conditions revealed very low THI values on Farm A in winter, probably due to spacious openings (i.e., air inlet surface; Table 2). The average THI value here was similar to the outdoor level and remained below 55, suggesting that the goats experienced low thermal comfortbecause cold stress can occur below this threshold [5]. In contrast, on Farm B, the winter openings were smaller, and this may have contributed to making the THI average value almost ten points higher than the outside one and above the threshold proposed by [5]. On the other hand, in summer the THI values of Farms A and B were more similar to each other and closely matched outdoor levels. This similarity between the indoor and outdoor conditions of the two farms was probably due to the greater openness of the windows and doors of the barns, which is typical of the summer period. The average THI values for this season are acceptable when considering a threshold of 70 for heat stress, while the maximum values above 80 recorded on both farms indicate potentially critical conditions, as heat stress is considered severe when the THI exceeds 75 [5]. However, since these high THI values occurred only for short periods, they are unlikely to pose a major concern, though monitoring animals’ clinical responses to THI fluctuations remains important. In the literature, effects of heat stress have been reported in Alpine goats, which decreased milk production after exposure to a THI of 79 for five weeks, and in Saanen goats, where a decrease in milk yield of 3% and 13% was recorded when exposed to a THI of 81 and 89 for four days, respectively [31].

4.2. NH3 and CO2

On both farms, CO2 concentrations remained below the recommended threshold of 2500 ppm for goats [1], while NH3 concentrations, with the exception of a few isolated exceedances in farm B, were generally maintained below the recommended threshold for goats of 10 ppm [1]. Furthermore, the concentrations of NH3 and CO2 never exceeded the allowed threshold established by the Italian law n.81/2008 about human protection and safety in the workplace.
The effect of barn opening management on THI also applies to indoor air quality, particularly NH3 and CO2 concentrations. Overall, Farm B had poorer air quality than Farm A, likely due to its smaller air inlet and outlet openings. Seasonal and daily air quality analyses revealed that Farm A had lower NH3 and CO2 concentrations in winter than in summer; however, these differences were not statistically significant. While increased winter ventilation improved air quality, it may have been excessive, given the very low THI. In contrast, Farm B had higher NH3 and CO2 levels in winter due to restricted airflow from limited door and window openings. Slightly higher concentrations of CO2 and NH3 were detected in both farms during the night than during the day, although these differences were not significant. The air quality observed at Farm B aligns with findings by [23], who reported higher NH3 and CO2 concentrations in winter and lower levels in summer due to reduced winter ventilation (0.4–0.8 m3 h−1 per goat) compared to summer (12–18 m3 h−1 per goat). Their study recorded NH3 concentrations of 2.8–7.4 ppm in winter and 1.0–3.4 ppm in summer, while CO2 levels ranged from 1988 to 2354 ppm in winter and from 754 to 857 ppm in summer in barns with solid and slatted floors, respectively. Despite the well-established positive correlation between milk urea level (MUL) and urinary nitrogen (UN) excretion [32], our study, particularly for Farm B, suggests that barn opening management has a greater influence on ammonia concentration than UN excretion. In ruminants, urinary urea nitrogen is a major nitrogen excretion product. After being excreted in urine, urea is rapidly converted into ammonia by the enzyme urease, which is present in feces and soil, and subsequently lost to the atmosphere. The concentration of milk urea is an indicator of the amount of N excreted in urine, making it a useful tool to estimate urinary urea N and, consequently, potential ammonia emissions from livestock farms. Contrary to expectations, based on lower MUL in winter, ammonia concentrations were lower when MUL was higher.
The age of the litter significantly influenced indoor air quality, with both NH3 and CO2 concentrations being higher in both seasons when the litter was older than when it had just been renewed. These findings align with studies by [8,33] on NH3 and greenhouse gas emissions in pig barns reared on litter. In livestock buildings, CO2 production derives not only from animal respiration but also from manure [34]. When manure is frequently removed, its contribution to CO2 emissions is minimal. The authors of [35] estimated that in barns where manure is stored for less than three weeks, it accounts for only 10% of CO2 emissions. However, in goat barns with longer bedding renewal periods (4–5 weeks to 3 months), manure is responsible for 56% of CO2 emissions [36].

4.3. PM2.5

The literature does not provide any specific values for the recommended PM thresholds for goats, even if we can consider a range of 3–10 mg m−3 for animals housed as an acceptable threshold [18]. The concentrations of PM2.5 never exceeded the allowed threshold established by [37] to preserve human health.
PM2.5 levels in the barns seemed to be strongly influenced by external environmental conditions. On Farm A, higher concentrations were recorded in winter due to poorer outdoor air quality, while summer levels were lower and closely matched outdoor values. As previously mentioned, an assessment was not possible for Farm B due to the absence of nearby ARPA meteorological monitoring stations. Sevi et al. (2003) [6] reported respirable dust concentrations (2–5 µm particles) of 150 µg m−3 in sheep barns with 0–14-day-old litter, significantly higher than the levels recorded in the present study. Regarding the influence of the age of the litter on indoor air quality, in winter, PM2.5 levels tended to be higher when the litter was newer, whereas in summer, the opposite trend was observed. However, the differences in PM2.5 concentrations between new and old litter in summer had a lower significance than the differences in the winter period. In winter, the higher levels of PM2.5 detected in new litter are probably caused by the dustiness of fresh straw, which becomes damp over time. This reduces the amount of PM2.5 released into the air. In summer, when it is hotter, the litter may remain drier and therefore stay dustier. Sevi et al. (2003) [6] found that respirable dust levels in sheep farms increased with litter age, rising from 0.15 mg m−3 at 0–14 days to 0.95 mg m−3 at 43–56 days. However, since Sevi et al. (2003) [6] did not specify the season of measurement, direct comparisons with our results are difficult.

4.4. Limitations

Monitoring of both barns was only carried out during certain periods: seven days after litter replacement in two seasons and a few days before litter removal at Farm A. Monitoring over the course of a whole year would enable the entire life cycle of the bedding in the various repeating cycles throughout the year to be observed, thus providing a comprehensive overview of air quality in dairy goat barns under more heterogeneous conditions. However, this more in-depth monitoring was not possible due to limitations of the measurement system, as highlighted by [38], such as fouling of the monitoring units and the lifespan of the electrochemical sensors and batteries. The operating principle of electrochemical sensors involves an electrolyte that is consumed during the measurement process, which affects the lifespan of the sensor proportionally to the concentrations detected [7,39]. Based on the results obtained, we do not believe that the monitored goat barns presented conditions that compromised the sensors’ measurement accuracy for the entire monitoring period [40]. Future studies should allow for optimization of the measuring system’s management, either by prolonging the battery life or by substituting it with AC current. The latter option would, however, require work on the barn’s electrical system. Finally, extending the life of the sensors by reducing continuous monitoring to high-frequency monitoring could be achieved by sampling the internal air and sending it to the sensors.

5. Conclusions

The IoT-based sensor system used in the present study enabled continuous, non-invasive, real-time monitoring of environmental conditions and air quality in goat barns, marking the first reported application of a Precision Livestock Farming (PLF) tool for this purpose. Beyond demonstrating technical feasibility, the findings highlight how barn structure, the management of openings, and litter renewal frequency influence gas concentrations and overall air quality. While measured values were generally within recommended thresholds for animal health and welfare, instances of both heat and cold stress were detected, underlining the need for artificial ventilation and barn openings management. This preliminary study confirms the potential of IoT systems as practical tools for environmental monitoring in goat farming and points to future work extending to additional farms, seasons, and gases such as CH4.

Author Contributions

Conceptualization, A.F. and S.M.; methodology, A.F., R.A. and S.M.; investigation, A.F., S.C. and L.R.; data curation, R.A., S.C. and L.R.; writing—original draft preparation, A.F. and S.C.; writing—review and editing, L.R., R.A. and S.M.; supervision, project administration, and funding acquisition, A.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the University of Milan with “Azione A-Linea 2-Piano di sostegno alla ricerca 2021”.

Institutional Review Board Statement

The animal study protocol was approved by the Ethical Committee for Animal Experimentation (Organismo per la Protezione del Benessere Animale, OPBA) of the University of Milan (protocol code OPBA_53_2022; 29 April 2022).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The original contributions presented in the study are included in the article; further inquiries can be directed to the corresponding author.

Acknowledgments

We thank IBT Systems s.r.l. for the technical development and realization of the monitoring units. We would like to thank Bagaggera and Boscasso farms for their willingness to participate in this project.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Figure A1. Images of the two monitored farms.
Figure A1. Images of the two monitored farms.
Animals 15 03332 g0a1
Figure A2. Parameters recorded on Farm A (red line) and Farm B (blue line): CO2 trends during summer (a) and winter (b); NH3 trends during summer (c) and winter (d); PM2.5 trends during summer (e) and winter (f); THI trends during summer (g) and winter (h).
Figure A2. Parameters recorded on Farm A (red line) and Farm B (blue line): CO2 trends during summer (a) and winter (b); NH3 trends during summer (c) and winter (d); PM2.5 trends during summer (e) and winter (f); THI trends during summer (g) and winter (h).
Animals 15 03332 g0a2

References

  1. Sevi, A.; Casamassima, D.; Pulina, G.; Pazzona, A. Factors of welfare reduction in dairy sheep and goats. Ital. J. Anim. Sci. 2009, 8 (Suppl. 1), 81–101. [Google Scholar] [CrossRef]
  2. Ni, J.Q.; Erasmus, M.A.; Croney, C.C.; Li, C.; Li, Y. A critical review of advancement in scientific research on food animal welfare-related air pollution. J. Hazard. Mater. 2021, 408, 124468. [Google Scholar] [CrossRef] [PubMed]
  3. Von Borell, E.; Özpinar, A.; Eslinger, K.M.; Schnitz, A.L.; Zhao, Y.; Mitloehner, F.M. Acute and prolonged effects of ammonia on hematological variables, stress responses, performance, and behavior of nursery pigs. J. Swine Health Prod. 2007, 15, 137–145. [Google Scholar] [CrossRef] [PubMed]
  4. Phillips, C.J.C.; Pines, M.K.; Latter, M.; Muller, T.; Petherick, J.C.; Norman, S.T.; Gaughan, J.B. Physiological and behavioral responses of sheep to gaseous ammonia. J. Anim. Sci. 2012, 90, 1562–1569. [Google Scholar] [CrossRef]
  5. Battini, M.; Barbieri, S.; Fioni, L.; Mattiello, S. Feasibility and validity of animal-based indicators for on-farm welfare assessment of thermal stress in dairy goats. Int. J. Biometeorol. 2016, 60, 289–296. [Google Scholar] [CrossRef]
  6. Sevi, A.; Albenzio, M.; Muscio, A.; Casamassima, D.; Centoducati, P. Effects of litter management on airborne particulates in sheep houses and on the yield and quality of ewe milk. Livest. Prod. Sci. 2003, 81, 1–9. [Google Scholar] [CrossRef]
  7. Zhuang, S.; Van Overbeke, P.; Vangeyte, J.; Sonck, B.; Demeyer, P. Evaluation of a cost-effective ammonia monitoring system for continuous real-time concentration measurements in a fattening pig barn. Sensors 2019, 19, 3669. [Google Scholar] [CrossRef]
  8. Philippe, F.X.; Laitat, M.; Nicks, B.; Cabaraux, J.F. Ammonia and greenhouse gas emissions during the fattening of pigs kept on two types of straw floor. Agric. Ecosyst. Environ. 2012, 150, 45–53. [Google Scholar] [CrossRef]
  9. Guarino, M.; Fabbri, C.; Navarotto, P.; Valli, L.; Moscatelli, G.; Rossetti, M.; Mazzotta, V. Ammonia, methane and nitrous oxide emissions and particulate matter concentrations in two different buildings for fattening pigs. In Proceedings of the International Symposium on Gaseous and Odor Emissions from Animal Production Facilities, Horsens, Denmark, 1–4 June 2003; pp. 140–149. [Google Scholar]
  10. Amon, B.; Kryvoruchko, V.; Fröhlich, M.; Amon, T.; Pöllinger, A.; Mösenbacher, I.; Hausleitner, A. Ammonia and greenhouse gas emissions from a straw flow system for fattening pigs: Housing and manure storage. Livest. Sci. 2007, 112, 199–207. [Google Scholar] [CrossRef]
  11. Mautone, A.; Finzi, A. State of the art and perspectives in ammonia and particulate matter measurement in pig houses. In Proceedings of the 2024 IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor), Padova, Italy, 29–31 October 2024; pp. 128–133. [Google Scholar]
  12. Mautone, A.; Finzi, A. Air quality monitoring in piggeries through an IoT gas and environmental sensors device. In Proceedings of the 11th European Conference on Precision Livestock Farming, Bologna, Italy, 9–12 September 2024; pp. 1728–1736. [Google Scholar]
  13. Tugnolo, A.; Beghi, R.; Cocetta, G.; Finzi, A. An integrated device for rapid analysis of indoor air quality in farms: The cases of milking parlors and greenhouses for baby leaf cultivation. J. Clean. Prod. 2022, 369, 133401. [Google Scholar] [CrossRef]
  14. Ji, B.; Zheng, W.; Gates, R.S.; Green, A.R. Design and performance evaluation of the upgraded portable monitoring unit for air quality in animal housing. Comput. Electron. Agric. 2016, 124, 132–140. [Google Scholar] [CrossRef]
  15. Pereira, W.F.; da Silva Fonseca, L.; Putti, F.F.; Góes, B.C.; de Paula Naves, L. Environmental monitoring in a poultry farm using an instrument developed with the internet of things concept. Comput. Electron. Agric. 2020, 170, 105257. [Google Scholar] [CrossRef]
  16. Feng, Z.; Zheng, L.; Ren, B.; Liu, D.; Huang, J.; Xue, N. Feasibility of low-cost particulate matter sensors for long-term environmental monitoring: Field evaluation and calibration. Sci. Total Environ. 2024, 945, 174089. [Google Scholar] [CrossRef]
  17. Tullo, E.; Finzi, A.; Guarino, M. Environmental impact of livestock farming and Precision Livestock Farming as a mitigation strategy. Sci. Total Environ. 2019, 650, 2751–2760. [Google Scholar] [CrossRef]
  18. Buoio, E.; Cialini, C.; Costa, A. Air quality assessment in pig farming: The Italian classyfarm. Animals 2023, 13, 2297. [Google Scholar] [CrossRef]
  19. Conti, C.; Borgonovo, F.; Guarino, M. Ammonia concentration and recommended threshold values in pig farming: A review. In Proceedings of the 2021 IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor), Trento-Bolzano, Italy, 3–5 November 2021; pp. 162–166. [Google Scholar]
  20. Ullman, J.L.; Mukhtar, S.; Lacey, R.E.; Carey, J.B. A review of literature concerning odors, ammonia, and dust from broiler production facilities: 4. Remedial management practices. J. Appl. Poult. Res. 2004, 13, 521–531. [Google Scholar] [CrossRef]
  21. Seedorf, J.; Hartung, J. Survey of ammonia concentrations in livestock buildings. J. Agric. Sci. 1999, 133, 433–437. [Google Scholar] [CrossRef]
  22. Howard, A.; Botlaguduru, S.V.; Du, H.; Kommalapati, R.R.; Huque, Z. Measurements and comparative air quality analysis of a goat farm operation. Trans. ASABE 2019, 62, 1723–1733. [Google Scholar] [CrossRef]
  23. Cai, L.; Yu, J.; Zhang, J.; Qi, D. The effects of slatted floors and manure scraper systems on the concentrations and emission rates of ammonia, methane and carbon dioxide in goat buildings. Small Rumin. Res. 2015, 132, 103–110. [Google Scholar] [CrossRef]
  24. Hays, F.L.; Hahn, L.; Goret, E.; Johnson, H.D. Hydrogen sulfide (H2S) exposure in ruminants. J. Anim. Sci. 1972, 35, 189. [Google Scholar]
  25. Riedel, A.; Pieper, L.; Lautner, M.; Leiding, C.; Jung, M.; Schulze, M. Influence of deep-litter bedding materials on environmental and welfare-related factors in boar studs. Appl. Anim. Behav. Sci. 2024, 273, 106215. [Google Scholar] [CrossRef]
  26. Provolo, G.; Brandolese, C.; Grotto, M.; Marinucci, A.; Fossati, N.; Ferrari, O.; Beretta, E.; Riva, E. An Internet of Things framework for monitoring environmental conditions in livestock housing to improve animal welfare and assess environmental impact. Animals 2025, 15, 644. [Google Scholar] [CrossRef]
  27. Srivastava, A.; Yadav, P.; Mahajan, A.; Anand, M.; Yadav, S.; Madan, A.K.; Yadav, B. Appropriate THI model and its threshold for goats in semi-arid regions of India. J. Therm. Biol. 2021, 96, 102845. [Google Scholar] [CrossRef] [PubMed]
  28. Batschelet, E. Circular Statistics in Biology; Academic Press: London, UK, 1981. [Google Scholar]
  29. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2023. [Google Scholar]
  30. Pinheiro, J.; Bates, D.; DebRoy, S.; Sarkar, D.; R Core Team. nlme: Linear and Nonlinear Mixed Effects Models, R package version 3.1-164; R foundation for Statistical Computing: Vienna, Austria, 2023. [Google Scholar]
  31. Salama, A.A.K.; Caja, G.; Hamzaoui, S.; Badaoui, B.; Castro-Costa, A.; Façanha, D.A.E.; Bozzi, R. Different levels of response to heat stress in dairy goats. Small Rumin. Res. 2014, 121, 73–79. [Google Scholar] [CrossRef]
  32. Rapetti, L.; Colombini, S.; Galassi, G.; Crovetto, G.M.; Malagutti, L. Relationship between milk urea level, protein feeding and urinary nitrogen excretion in high producing dairy goats. Small Rumin. Res. 2014, 121, 96–100. [Google Scholar] [CrossRef]
  33. Philippe, F.X.; Nicks, B. Review on greenhouse gas emissions from pig houses: Production of carbon dioxide, methane and nitrous oxide by animals and manure. Agric. Ecosyst. Environ. 2015, 199, 10–25. [Google Scholar] [CrossRef]
  34. Pedersen, S.; Sällvik, K. International Commission of Agricultural Engineering, Section II 4th Report of Working Group Climatization of Animal Houses Heat and Moisture Production at Animal and House Levels. 2002. Available online: https://www.cigr.org/sites/default/files/documets/CIGR_4TH_WORK_GR.pdf (accessed on 15 July 2025).
  35. Pedersen, S.; Blanes-Vidal, V.; Joergensen, H.; Chwalibog, A.; Haeussermann, A.; Heetkamp, M.J.W.; Aarnink, A.J.A. Carbon Dioxide Production in Animal Houses: A Literature Review. CIGR E-J. 2008, X. Manuscript BC 08 008. Available online: https://cigrjournal.org/index.php/Ejounral/article/view/1205 (accessed on 15 July 2025).
  36. Calvet, S.; van Dooren, H.J.C.; Ogink, N.W.; Mosquera, J. Measuring and assessing the role of deep litter to estimate the ventilation rate using the CO2 mass balance method. Biosyst. Eng. 2022, 224, 313–323. [Google Scholar] [CrossRef]
  37. WHO. WHO Global Air Quality Guidelines: Particulate Matter (PM2.5 and PM10), Ozone, Nitrogen Dioxide, Sulfur Dioxide and Carbon Monoxide; WHO European Centre for Environment and Health: Bonn, Germany, 2021; Available online: https://iris.who.int/bitstream/handle/10665/345329/9789240034228-eng.pdf?sequence=1 (accessed on 10 September 2025).
  38. Bordignon, F.; Pravato, M.; Trocino, A.; Xiccato, G.; Marinello, F.; Pezzuolo, A. Environmental Gradients and Hen Spatial Distribution in a Cage-Free Aviary System: Internet of Things-Based Real-Time Monitoring for Proactive Management. Animals 2025, 15, 1225. [Google Scholar] [CrossRef]
  39. Janke, D.; Bornwin, M.; Coorevits, K.; Hempel, S.; van Overbeke, P.; Demeyer, P.; Amon, B. A low-cost wireless sensor network for barn climate and emission monitoring—Intermediate results. Atmosphere 2023, 14, 1643. [Google Scholar] [CrossRef]
  40. Rosa, E.; Rincón, L.; Merino, P. Real time electrochemical ammonia (NH3) sensors performance in a natural ventilation dairy cattle barn. In Proceedings of the 11th European Conference on Precision Livestock Farming, Bologna, Italy, 9–12 September 2024; pp. 1400–1405. [Google Scholar]
Figure 1. Data recorded on Farm A (blue dot) and Farm B (orange dot), presented as an hourly average and standard error, over a 24 h period: CO2 in summer (a) and winter (b); NH3 in summer (c) and winter (d); PM2.5 in summer (e) and winter (f); THI in summer (g) and winter (h).
Figure 1. Data recorded on Farm A (blue dot) and Farm B (orange dot), presented as an hourly average and standard error, over a 24 h period: CO2 in summer (a) and winter (b); NH3 in summer (c) and winter (d); PM2.5 in summer (e) and winter (f); THI in summer (g) and winter (h).
Animals 15 03332 g001
Figure 2. Average gas and particulate matter concentrations and THI on Farms A and B within 6 days after the litter renewal: CO2 (a); NH3 (b); PM2.5 (c); THI (d). Asterisks denote groups that differ significantly (* = p < 0.05; *** = p < 0.001).
Figure 2. Average gas and particulate matter concentrations and THI on Farms A and B within 6 days after the litter renewal: CO2 (a); NH3 (b); PM2.5 (c); THI (d). Asterisks denote groups that differ significantly (* = p < 0.05; *** = p < 0.001).
Animals 15 03332 g002
Figure 3. Effects of season and period of day (day = 10 a.m.–2 p.m.; night = 10 p.m.–2 a.m.) on CO2 at Farm A (a) and B (b); NH3 at Farm A (c) and B (d); PM2.5 at Farm A (e) and B (f); THI at Farm A (g) and B (h). Asterisks denote groups that differ significantly (n.s. = p ≥ 0.05; ** = p < 0.01; *** = p < 0.001).
Figure 3. Effects of season and period of day (day = 10 a.m.–2 p.m.; night = 10 p.m.–2 a.m.) on CO2 at Farm A (a) and B (b); NH3 at Farm A (c) and B (d); PM2.5 at Farm A (e) and B (f); THI at Farm A (g) and B (h). Asterisks denote groups that differ significantly (n.s. = p ≥ 0.05; ** = p < 0.01; *** = p < 0.001).
Animals 15 03332 g003
Figure 4. The indoor air quality and ambient conditions on Farm A with new and old litter. Summer season: CO2 (a), NH3 (c), PM2.5 (e); winter season: CO2 (b), NH3 (d), PM2.5 (f). Asterisks denote groups that differ significantly (n.s. = p ≥ 0.05; * = p < 0.05; ** = p < 0.01).
Figure 4. The indoor air quality and ambient conditions on Farm A with new and old litter. Summer season: CO2 (a), NH3 (c), PM2.5 (e); winter season: CO2 (b), NH3 (d), PM2.5 (f). Asterisks denote groups that differ significantly (n.s. = p ≥ 0.05; * = p < 0.05; ** = p < 0.01).
Animals 15 03332 g004
Table 1. Farm characteristics.
Table 1. Farm characteristics.
ParameterFarm AFarm B
WinterSummerWinterSummer
Wheater conditions
Temperature (°C)5.9 ± 3.222.6 ± 3.811.5 ± 3.425.2 ± 7.3
Humidity (%)73.1 ± 16.785.9 ± 15.061.0 ± 23.654.0 ± 25.3
Precipitation (mm)0.0 ± 0.00.4 ± 2.30.0 ± 0.20.3 ± 1.3
Altitude (m a.s.l.)300600
Barn orientationE-WE-W
Building materialWood (roof); Concrete-wood (walls)Wood (roof); Concrete (walls)
Goats (n.)1201106659
Stocking density (m2 head−1)1.541.681.731.93
Airspace (m3 head−1)14.315.69.811
Air inlet surface (m2 head−1)0.610.670.250.43
Air outlet surface (m2 head−1)0.380.410.070.08
Litter renewal frequency (d)90607
Table 2. Characteristics of the sensors installed on the monitoring units. Manufacturers (*) SGX sensortech, Corcelles-Cormondreche, Switzerland; (**) Sensirion, Stäfa, Switzerland.
Table 2. Characteristics of the sensors installed on the monitoring units. Manufacturers (*) SGX sensortech, Corcelles-Cormondreche, Switzerland; (**) Sensirion, Stäfa, Switzerland.
ParameterSensorTypeRangeAccuracy
NH34NH3-100 (*)Electrochemical0–100 ppm±10%
CO2SCD30
(**)
Nondispersive infrared (NDIR)400–10,000 ppm30 ppm
H2S4H2S-100 (*)Electrochemical0–100 ppm±2%
TemperatureSHT3x/SHT4x (**)CMOSens−40–+125 °C±0.1 °C
HumiditySHT3x/SHT4x (**)CMOSens0–100%±2%
PMSPS30 (**)Laser scattering0–1000 µg m−3±10 µg m−3 (PM2.5)
±25 µg m−3 (PM10)
Table 3. Fixed effects of the linear mixed-effects models (LMMs) for the mean concentrations of CO2, NH3, PM2.5 and THI on Farms A and B. φ is the temporal autocorrelation coefficient estimated by the model.
Table 3. Fixed effects of the linear mixed-effects models (LMMs) for the mean concentrations of CO2, NH3, PM2.5 and THI on Farms A and B. φ is the temporal autocorrelation coefficient estimated by the model.
VariableEffectEstimateSEDFtp
CO2φ0.89----
Intercept536.5027.32385219.64<0.001
Farm B246.4540.39306.10<0.001
sin(hour)27.947.8938523.54<0.001
cos(hour)55.477.0738527.84<0.001
sin(hour) × cos(hour)−42.3812.863852−3.300.001
NH3Φ0.98----
Intercept1.630.1738529.79<0.001
Farm B1.730.40304.26<0.001
sin(hour)0.450.1038524.29<0.001
cos(hour)0.590.1038525.82<0.001
sin(hour) × cos(hour)−0.640.123852−5.47<0.001
PM2.5Φ0.74----
Intercept23.103.2325527.16<0.001
Farm B−10.454.6430−2.250.032
sin(hour)2.920.6925524.26<0.001
cos(hour)−0.940.632552−1.500.135
sin(hour) × cos(hour)−3.501.232552−2.850.004
THIΦ0.99----
Intercept58.212.99385219.50<0.001
Farm B8.313.65302.280.03
sin(hour)−2.360.123852−20.09<0.001
cos(hour)−0.450.143852−3.210.001
sin(hour) × cos(hour)1.020.1438527.43<0.001
Table 4. Fixed effects of the linear mixed-effects models (LMMs) for the mean concentrations of CO2, NH3, PM2.5 and THI.
Table 4. Fixed effects of the linear mixed-effects models (LMMs) for the mean concentrations of CO2, NH3, PM2.5 and THI.
VariableFarmEffectEstimateSEDFtp
CO2Aφ0.91----
Intercept529.9116.63197531.86<0.001
Period (night)40.2024.06141.670.117
Season (winter)−9.4822.7114−0.410.683
Period × Season−20.5626.9114−0.760.458
sin(hour)14.693.7319753.94<0.001
cos(hour)29.649.8619753.010.002
sin(hour) × cos(hour)55.057.6419757.20<0.001
CO2Bφ0.93----
Intercept627.7618.94184233.15<0.001
Period (night)−12.5633.8614−0.370.716
Season (winter)382.5270.94145.39<0.001
Period × Season−112.6380.2014−1.400.182
sin(hour)−15.118.571842−1.760.078
cos(hour)96.0219.3818424.96<0.001
sin(hour) × cos(hour)−125.9280.2014−5.67<0.001
NH3Aφ0.92----
Intercept1.860.1919759.77<0.001
Period (night)0.050.17140.270.790
Season (winter)−0.300.2814−1.060.306
Period × Season−0.020.2014−0.090.929
sin(hour)−0.050.031975−1.610.108
cos(hour)0.250.0819753.230.001
sin(hour) × cos(hour)−0.200.061975−3.110.002
NH3Bφ0.97----
Intercept1.990.2118429.37<0.001
Period (night)−0.690.3914−1.790.095
Season (winter)2.160.63143.430.004
Period × Season1.700.95141.790.095
sin(hour)0.410.0718425.97<0.001
cos(hour)0.950.1618426.09<0.001
sin(hour) × cos(hour)−0.970.181842−5.46<0.001
PM2.5Aφ0.90----
Intercept9.212.5013053.68<0.001
Period (night)2.272.56140.89<0.001
Season (winter)25.375.81144.37<0.001
Period × Season1.125.52140.200.842
sin(hour)1.940.6313053.080.002
cos(hour)−2.901.061305−2.750.006
sin(hour) × cos(hour)−4.441.151305−3.86<0.001
PM2.5Bφ0.67----
Intercept11.283.0312123.72<0.001
Period (night)−1.542.4814−0.620.546
Season (winter)5.754.43141.300.215
Period × Season−2.363.2714−0.720.482
sin(hour)0.640.7412120.860.390
cos(hour)0.241.1912120.210.838
sin(hour) × cos(hour)−1.141.141212−0.850.393
THIAφ0.99----
Intercept71.80.81197588.20<0.001
Period (night)0.121.31140.090.928
Season (winter)−26.071.2314−21.14<0.001
Period × Season0.412.13140.190.850
sin(hour)−5.240.121975−43.15<0.001
cos(hour)−2.230.321975−7.05<0.001
sin(hour) × cos(hour)3.620.21197517.34<0.001
THIBφ0.99----
Intercept72.581.54184247.09<0.001
Period (night)0.031.24140.030.979
Season (winter)−12.262.1814−5.63<0.001
Period × Season0.101.43140.070.943
sin(hour)−2.060.061842−33.290.0000
cos(hour)−0.320.181842−1.840.662
sin(hour) × cos(hour)0.720.1918423.71<0.001
Table 5. Fixed-effect estimates from the linear mixed-effects models (LMMs) describing the mean concentrations of CO2, NH3, PM2.5, and THI during summer and winter, comparing new and old litter. φ is the temporal autocorrelation coefficient estimated by the model.
Table 5. Fixed-effect estimates from the linear mixed-effects models (LMMs) describing the mean concentrations of CO2, NH3, PM2.5, and THI during summer and winter, comparing new and old litter. φ is the temporal autocorrelation coefficient estimated by the model.
SeasonVariableEffectEstimateSEDFt-Valuep
SummerCO2φ0.85----
(Intercept)606.9717.21141535.28<0.001
New vs. old litter−62.8121.568−2.910.0195
sin(hour)49.879.4914155.26<0.001
cos(hour)73.659.0514158.14<0.001
sin(hour) × cos(hour)−15.9217.271415−0.920.357
NH3φ0.96----
(Intercept)2.870.2914159.76<0.001
New vs. old litter−0.820.368−2.300.050
sin(hour)0.180.1314151.450.147
cos(hour)0.480.1214154.13<0.001
sin(hour) × cos(hour)−0.410.161415−2.520.012
PM2.5φ0.92----
(Intercept)11.721.848806.37<0.001
New vs. old litter−0.132.588−0.050.962
sin(hour)1.550.858801.820.069
cos(hour)−0.430.80880−0.540.589
sin(hour) × cos(hour)−1.821.37880−1.330.183
WinterCO2φ0.89----
(Intercept)571.1111.53160049.53<0.001
New vs. old litter−38.4614.2510−2.700.022
sin(hour)−12.097.461600−1.620.105
cos(hour)25.506.9616003.660.0003
sin(hour) × cos(hour)−0.1912.711600−0.020.988
NH3φ0.85----
(Intercept)2.360.16160015.14<0.001
New vs. old litter−0.800.2210−3.720.004
sin(hour)−0.020.041600−0.450.654
cos(hour)0.340.0416008.20<0.001
sin(hour) × cos(hour)−0.190.081600−2.370.018
PM2.5φ0.92----
(Intercept)18.174.3910614.14<0.001
New vs. old litter18.396.55102.810.019
sin(hour)−0.362.421061−0.150.883
cos(hour)2.012.2210610.900.366
sin(hour) × cos(hour)2.203.1910610.690.490
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Celozzi, S.; Ambrosini, R.; Rapetti, L.; Mattiello, S.; Finzi, A. IoT Monitoring of Indoor Air Quality in Dairy Goat Barns: The Role of Building Characteristics and Litter Management. Animals 2025, 15, 3332. https://doi.org/10.3390/ani15223332

AMA Style

Celozzi S, Ambrosini R, Rapetti L, Mattiello S, Finzi A. IoT Monitoring of Indoor Air Quality in Dairy Goat Barns: The Role of Building Characteristics and Litter Management. Animals. 2025; 15(22):3332. https://doi.org/10.3390/ani15223332

Chicago/Turabian Style

Celozzi, Stefania, Roberto Ambrosini, Luca Rapetti, Silvana Mattiello, and Alberto Finzi. 2025. "IoT Monitoring of Indoor Air Quality in Dairy Goat Barns: The Role of Building Characteristics and Litter Management" Animals 15, no. 22: 3332. https://doi.org/10.3390/ani15223332

APA Style

Celozzi, S., Ambrosini, R., Rapetti, L., Mattiello, S., & Finzi, A. (2025). IoT Monitoring of Indoor Air Quality in Dairy Goat Barns: The Role of Building Characteristics and Litter Management. Animals, 15(22), 3332. https://doi.org/10.3390/ani15223332

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop