Figures
Abstract
Poultry farming is a rapidly growing agricultural subsector worldwide and plays a significant role in meeting global demand for human protein. In Bangladesh, poultry farming is in developing phase, but it faces major challenges. Where improper temperatures, humidity, gas concentrations, dust levels, and poor ventilation significantly reduce poultry health, egg production, and overall farm profitability. To address these issues, monitoring systems are increasingly being adopted for early detection and continuous assessment of the farm environment. However, in a traditional monitoring system, the process is slow and inaccurate, and it cannot provide early warning of harmful conditions. The conventional method for poultry farming involves manual monitoring, leading to poor management and low efficiency. Smart poultry farming using Internet of Things (IoT) technology can help improve efficiency, poultry well-being, and management practices. This paper presents an IoT based early detection, monitoring and controlling system to maintain an ideal environment in a poultry farm using real time data. The testing was conducted at a poultry farm in Bangladesh; for consistency, a rigorous 15-day test was conducted. The results from the prototype system shows significant results than those from the reference sensors. For each sensor used on the prototype system, a linear correlation analysis was conducted. This confirms the system’s accuracy in measuring temperature, humidity, ammonia, and methane. To maintain the farm’s temperature, an automated cooling system using a honeycomb is also incorporated. For the microcontroller unit, the ESP32 was used, and for the IoT base platform, ThingSpeak is utilized. After performing the cost analysis of the system, it was found that the system with the early monitoring feature was constructed at a total cost of United States Dollar (USD) 43, which is convenient for developing countries like Bangladesh. The source code of the proposed system is available on GitHub.
Citation: Alam MN, Buiyan MZH, Sarker R, Hossain I, Hasan MM (2026) IoT based automated early detection and real time environmental monitoring for poultry farming in developing countries. PLoS One 21(9): e0356528. https://doi.org/10.1371/journal.pone.0356528
Editor: Andrey Nagdalian, North-Caucasus Federal University - Pyatigorsk Campus: Severo-Kavkazskij federal'nyj universitet Patigorskij institut filial, RUSSIAN FEDERATION
Received: March 1, 2026; Accepted: August 4, 2026; Published: September 15, 2026
Copyright: © 2026 Alam et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript and its Supporting Information files.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Abbreviations: IoT, Internet of Things; FCR, Feed Conversion Ratio; PPM, Parts Per Million; CAGR, Compound Annual Growth Rate; RH, Relative Humidity; SEM, Standard Error of Mean; SD, Standard Deviation; LED, Light Emitting Diode; NH3, Ammonia; CH4, Methane; BME680, Bosch Multi-Environment Sensor; MQ137, Metal Oxide gas sensor for Ammonia; MQ4, Metal Oxide gas sensor for Methane; BH1750, Digital light intensity sensor; OLED, Organic Light Emitting Diode; BDT, Bangladeshi Taka; USD, United States Dollar; HPAI, Highly Pathogenic Avian Influenza.
1. Introduction
Rearing domesticated birds such as chickens, ducks, turkeys, and quails for food, eggs, and other products is essential for food security and economic development worldwide [1,2]. Containment systems for controlled environments are standard in a poultry farm. These may be small backyard farms or massive commercial centers. The overall objective is to keep the birds housed, fed, and monitored to attain maximum growth, reproduction, and good health [3]. Poultry farms include housing systems, feeding techniques, waste management, and biosecurity measures to reduce disease and environmental stressors. Finally, Low-cost protein is offered to enhance human nutrition [4,5]. As a scalable and flexible business, poultry farming sustains the lives of millions of people, particularly in rural areas. It is a sector that responds to the fact that the popularity of animal-based proteins will continue to rise, and the population will reach 9.7 billion people by 2050 [6,7]. The poultry industry has been expanding rapidly worldwide, turning poultry farming into a multibillion-dollar venture. It is estimated to grow to 423 billion dollars by 2025, with a compound annual growth rate (CAGR) of 7 percent since the beginning of the 21st century [8]. Urbanization, rising incomes, and a shift in diet toward intensive consumption of high protein, low cholesterol meats contribute to this growth. Annual per capita chicken consumption is 315 million tonnes worldwide (72% of total meat consumption) [9,10].The most dominant manufacturers are the United States, which handles 20 million tonnes annually; China, which handles 22 million tonnes; and Brazil, which handles 14 million tonnes. This has made them more efficient and led to vertical integration through hatcheries, feed mills, and processing, resulting in more exports. The latest technologies, such as precision feeding and automated ventilation, have lowered the feed conversion ratio (FCR) to 1.5–2.0, improving sustainability in the face of climate challenges [11]. Nonetheless, the inequality persists, as the average output is forty percent in Asia and five percent in Africa, both areas being low resource endowed [4,5].
The poultry sector in Bangladesh is developing rapidly, in 1993–94, there were 43,589 backyard poultry farms, but now there are more than 300,000 commercial farms. This is now generating 1.8 million tonnes of meat and 15 billion eggs per annum at 1.5–2% GDP, and it employs 2.5 million workers, predominantly women and young rural workers [2,4]. The industry supplies 22–27 percent of the nation’s total animal protein demand, and broilers are the main product due to the high urban population in cities such as Dhaka [1]. Since 2010, pressures on inputs have been reduced by half through government initiatives such as the National Poultry Development Policy and the verticalization of companies, including Kazi Farms, to ensure self-sufficiency. Although these improvements have been made, the industry significantly contributes to poverty reduction, and 80 percent of the farms (smallholders) augment BDT 50,000–100,000 each year. Nonetheless, some weaknesses are revealed by issues like avian influenza outbreaks, such as the loss of HPAI in 2008 [8]. The traditional methods of rearing poultry are usually either cleaning their backs over open fields (80–90% in developing countries) or using intensive systems in poultry farms. Such exercises are usually related to periodic monitoring of environmental conditions (e.g., temperature with thermometers, humidity with hygrometers) and to work intensive activities such as feeding chickens, collecting, and incubating eggs [12]. Evaporative cooling and fans are popular in the Asian and African regions to control the heat. Maize soy blends represent the feed formulas, which are 60–70% of total costs [13]. Biosecurity is based on the visual checks, quarantines, and reactive inoculations (e.g., against Newcastle disease) rather than prevention strategies [14]. Although such cost-effective approaches are suitable for smallholders, An FCR of 2.5–3.0 is observed, while seasonal variations lead to a 10–20% mortality rate.
The future of IoT based poultry farming is expected to shift toward sensor fusion, AI, and edge computing, with a 25 percent annual increase, adding 25 percent to the market, which will be worth 400 million dollars by 2030 [6,7,10]. A combination of developing computer vision (CV) and machine learning to track behavior achieves 91.78% accuracy and will assist in the early detection of diseases [8,14]. Technologies such as solar hybrids and blockchain can be used to share data from off grid systems safely [5,13,15]. It is promising scalability in Asia, as reflected in Thai EVAP-WSN hybrid pilot projects and the expectation of targeting an incremental increase of 100 billion in regional Gross domestic product (GDP) by 2030 across Asia [4,7,9]. Against the background of such developments, numerous challenges this industry faces, including expensive feed (60%−70% of total costs), disease epidemics, and environmental pressures such as heatwaves [1,2]. 90% of Danish farmers predict these problems. Poor infrastructure, including 90 percent power blackouts in rural Bangladesh, and poor digital literacy are impediments to the use of IoT. Data integrity may be undermined by cybersecurity threats, such as Distributed Denial of Service (DDoS) attacks on Wireless Sensor Network (WSNs), which can have economic impacts [7,15]. Also, a deficient policy is irreconcilable, relying on imports, and when combined with the susceptibility of climate and post-harvest losses of 10–20 percent, there are still zoonotic risks involved.
Poultry farming in developing countries like Bangladesh still depends heavily on manual and periodic monitoring, which often fails to detect dangerous environmental changes in time. Improper temperature, humidity, toxic gas accumulation, and poor ventilation are among the leading causes of bird mortality and reduced egg production. Existing low-cost IoT systems proposed in the literature have addressed some of these concerns, but most lack long-term field validation, multi-parameter sensing, or practical affordability for small-scale farmers. These persistent gaps in both practice and research make the development of a reliable, affordable, and automated monitoring solution both timely and necessary.
This study highlights an IoT based environmental monitoring system design and system integration together with field level validation of two environmentally sustainable poultry farm prototypes in Bangladesh as the primary study context. It uses an ESP32 microcontroller interfaced with integrated sensors and a ThingSpeak cloud platform to monitor seven environmental factors: temperature, humidity, ammonia, methane, dust concentration, light intensity, and litter moisture. A 15-day field trial validated sensor performance against commercially available reference instruments. Addressing these problems with IoT based solutions is a crucial aspect of risk management and of achieving sustainable, equitable growth.
The main contributions of this paper are as follows:
- i. A comprehensive IoT based system integrating seven environmental sensors for simultaneous monitoring of temperature, humidity, ammonia, methane, dust, light intensity, and litter moisture offering a more holistic approach than prior studies that focus on only a few parameters.
- ii. An automated early detection mechanism with real time alert capabilities (buzzer, LED, and remote notification via ThingSpeak) to enable rapid farmer response before harmful thresholds are exceeded.
- iii. An automated evaporative cooling system using a honeycomb pad and fan, activated based on real time sensor data, to maintain a thermally ideal environment for poultry.
- iv. A thorough 15-day field validation of prototype sensors against standard commercial reference instruments using linear correlation analysis, confirming measurement accuracy across all monitored parameters.
- v. A cost-effective prototype developed at a total cost of USD 43, demonstrating practical affordability for smallholder farmers in developing countries like Bangladesh.
The uniqueness of this paper is based on the integration of various environmental sensors such as temperature, humidity, ammonia, methane, dust, light, and soil moisture to monitor and control all the critical factors that influence the health and productivity of poultry. For instance, it provides a holistic approach to poultry farm management compared to other systems that focus on a few parameters.
The following four research question was developed to understand the purpose of the study.
- RQ1: How do sensors help to maintain an ideal environment for poultry growth?
- RQ2: How can poultry health be improved through early detection and continuous monitoring of gases?
- RQ3: How can automation be used to enhance poultry health, productivity, and savings?
- RQ4: How can farmers improve disease prevention, feed intake and reproduction using historical and real time data along with predictive analytics?
To address these research issues, this study investigated the development, deployment, and verification of an IoT platform for poultry monitoring by combining sensors such as BME-680, MQ4, BH1750, water flow, dust, and capacitive soil moisture sensor and relay modules with microcontrollers such as Arduino and ESP32.
The main objective of this given paper is given below:
- An automated ventilation mechanism that operates based on real time environmental data.
- Helps the farmer detect harmful conditions early and take quick action, increasing farm efficiency.
- Reducing chicken mortality and increasing egg production.
2. Literature review
Monitoring the poultry industry is a pressing need in developing countries like Bangladesh, where poultry meat accounts for the majority of meat consumption. According to the Bangladesh Poultry Association, 2 billion BDT worth of birds were lost in 2024 [16]. It has been investigated that early monitoring can prevent these losses. A notable study regarding monitoring was conducted by G. Da Rocha Balthazar et al. [17]. The author presents the development and validation of an IoT-based environmental sensor designed to monitor the microclimate in broiler poultry houses. While a low-cost device was prepared, the power management issue remained unresolved, and validation was not conducted for a long term, such as 10–15 days. Additionally, O. K. Hélène et al. [18] discussed TinyML and IoT based system designed for the automated analysis and monitoring of chicken egg quality in the poultry industry. However, the system lacks full scale field deployment and limited environmental sensing. Throughout this study, an extensive investigation was conducted, leading to the inclusion of 20 papers in the summary. The document covered the years 2019–2025. Table 1 summarizes each paper’s primary focus and research contribution. By closely reviewing these works, key research gaps and limitations were identified: most papers did not conduct extensive prototype testing; few validated results against commercially available sensors; and only a limited number described stored data scenarios for one or two specific months. By addressing these particular gaps, the model has been prepared and describe it in detail in the methodology section.
Apart from poultry farming, IoT sensor technologies have gained a large number of applications across different domains of smart agriculture. Morchid et al. [19] has proposed an IoT based early fire detection system for smart agriculture integrating smoke and flame sensors, Raspberry Pi act as gateway and ThingSpeak cloud platform is used for data visualization in real time for prevent the calamity before the risk. This idea was then built upon in a follow up [20] where the authors created a web application featuring important cybersecurity components login authentication, HTTPS protocols, etc. based on Flask so that farmers could monitor real time fire detection data directly on a web browser to improve the safety of their farms. In another related work, Morchid et al. [21] proposed an IoT based smart irrigation management system that combines embedded systems, cloud computing via the ThingsBoard platform, and multi sensor data acquisition to optimize water usage and enhance agricultural water security. All in all, these works show that IoT sensor platforms have common architectural elements such as real time monitoring, cloud interfacing, automated responses based on threshold values, and remote accessibility, that can be utilized for various agri-related use cases including poultry farm environmental monitoring, fire detection for greenhouses and even water management for crop farming.
3. Methodology
3.1. Smart poultry farming environmental control system
Field testing was conducted at a privately owned commercial poultry farm in Bangladesh with the consent of the farm owner. No institutional or governmental permit was required for this study, as the work involved only non-invasive environmental monitoring using IoT sensors and did not involve any experimentation on animals or human participants. Field access was granted by the farm owner, and no formal ethical approval from an Institutional Review Board (IRB) or ethics committee was required. This study was conducted in accordance with the ethical guidelines of Bangladesh Army International University of Science and Technology, Cumilla, Bangladesh.
In Fig 1, an Internet of Things (IoT) based smart poultry farming environmental control system is depicted. The system ensures the ideal state for chickens by monitoring and controlling temperature, humidity, air quality, and soil moisture. Metal Oxide gas sensor for Ammonia (MQ137) and Metal Oxide gas sensor for Methane (MQ4) sensors continuously monitor harmful gases, including ammonia (NH3), CO2, methane (CH4), and other combustible gases, which are mostly produced by poultry waste. The BME680 sensor is used in the system to monitor temperature, relative humidity, and air quality. To expand egg production and bird activity, BH1750 sensors are used to measure light intensity. Dust sensors are used to protect chickens against pulmonary diseases, and a Capacitive Soil Sensor tracks the moisture level in the litter. The heating control system uses a pad fan cooling system for efficient temperature regulation. Water is stored in a water tank. During cold temperatures, this water is passed through the pads using water nozzles to cool the incoming hot air through evaporative cooling. The fan draws cold air into the poultry house, providing sufficient circulation and temperature equilibration.
3.2. Usable components
In Table 2, the usable component for the system has been listed. MQ 137 [22] is used to detect the toxic ammonia gases. Dust sensor [41] used to detect airborne, smoke, and pollen. Relay module [42] is used to switch voltage. BME680 [43] used to detect gas, humidity, pressure, and temperature. ESP 32 [44] takes data from other sensors. A Water flow sensor [45] monitors the water control level. BH1750 [46] to measure the surroundings of light. Capacitive soil moisture sensor [47] measure soil moisture. MQ4 [48] is used to detect methane.
The safety ranges, maximum allowable limits, and potential effects of various gases and environmental parameters in a poultry farming system is described in Table 3.
3.3. Flowchart of IoT based smart poultry farm monitoring system
In Fig 2, the flowchart illustrates how Internet of Things (IoT) based Smart Poultry Farm Monitoring works with the ESP32 microcontroller. According to the schematic architecture, environmental data are first collected by sensors, including dust, gas (MQ4 and MQ137), temperature & humidity (BME 680), light (BH1750), water flow, and capacitive soil. All sensor values are processed by the ESP32, which ultimately triggers decisions based on certain thresholds for communication. If humidity > 70% and temperature > 39°C, the system turns on the water pump, fan, and buzzer. If NH3 (>50 PPM) or CH4 (10 ppm ≤ CH4 ≤ 100 ppm), turn on the fan, buzzer, and Red LED. When the dust concentration is 15 mg/m³, the litter is wet, and the light intensity is too strong to ring the buzzer or activate the red LED. This information is also available remotely through a connected device. This process continues as the exchange is recycled, making it a feedback loop that helps achieve an ideal poultry environment.
3.4. Data management of IoT based smart poultry farm system
Fig 3 is the structure of a smart poultry farm, indicates how it handle all the collected data. This Internet of Things (IoT) based system continuously monitor the farm environment using various sensors. A microcontroller collects the data from the sensor. Based on real time data, the system controls the fan and cooling system to maintain a healthy environment inside the farm. The real-time data is also sent to the cloud platform wirelessly, which helps the farmer to monitor the farm environment and take necessary steps. The system also incorporates solar panels to power the entire setup, ensuring sustainability and reducing reliance on external electricity sources. The processed data is wirelessly transmitted to ThingSpeak, a cloud platform, which allows real-time monitoring and management of the system from a remote computer.
3.5. Schematic diagram
The circuit diagram of an Internet of Things (IoT) based smart poultry farming system is depicted in Fig 4. The ESP32 acts as the central microcontroller, processes data from the sensors, and controls components such as the water pump, DC fans, and other devices via a four-channel relay module. The system also has an OLED display for data viewing in real time, and a solar panel to power the system indefinitely. The figure also illustrates how the modules are powered, interconnected and function together to keep the poultry farm in a desirable state.
3.6. Pseudocode of the proposed system
Algorithm 1: IoT-based automated early detection and environmental monitoring for poultry farming
// Input Variables:
1: T_s ← Temperature sensor data (BME680, °C)
2: H_s ← Humidity sensor data (BME680, % RH)
3: NH3_s ← Ammonia sensor data (MQ137, PPM)
4: CH4_s ← Methane sensor data (MQ4, PPM)
5: D_s ← Dust sensor data (mg/m³)
6: L_s ← Light intensity sensor data (BH1750, lux)
7: SM_s ← Soil moisture sensor data (Capacitive sensor, %)
8: WF_s ← Water flow sensor data (L/min)
// Output Variables:
9: F_ctrl ← Fan/ventilation control status (ON/OFF)
10: P_ctrl ← Water pump control status (ON/OFF)
11: A_alert ← Audio buzzer alert status (ON/OFF)
12: L_alert ← LED alert status (RED/GREEN)
13: D_cloud ← Data transmission to ThingSpeak cloud
//Threshold Constants:
14: T_max = 39°C
15: H_max = 70% RH
16: NH3_max = 50 PPM
17: CH4_max = 10 ppm =<CH4 <= 100 ppm
18: D_max = 15 mg/m³
19: L_max = 60 lux
// Initialize System:
20: Initialize ESP32 microcontroller
21: Initialize all sensors: BME680, MQ137, MQ4, BH1750, Dust, Capacitive soil, Water flow
22: Initialize relay module, buzzer, LED indicators, OLED display
23: Establish Wi-Fi connection to ThingSpeak cloud platform
24: While true:
// Step 1: Read all sensor data
25: T_s = ReadSensor(BME680_Temperature)
26: H_s = ReadSensor(BME680_Humidity)
27: NH3_s = ReadSensor(MQ137_Ammonia)
28: CH4_s = ReadSensor(MQ4_Methane)
29: D_s = ReadSensor(DustSensor)
30: L_s = ReadSensor(BH1750_Light)
31: SM_s = ReadSensor(CapacitiveSoilMoisture)
32: WF_s = ReadSensor(WaterFlowSensor)
// Step 2: Display data on OLED
33: Display (T_s, H_s, NH3_s, CH4_s, D_s, L_s, SM_s, WF_s) on OLED
// Step 3: Check temperature and humidity thresholds
34: If (T_s > T_max) OR (H_s > H_max):
35: F_ctrl = ON
36: P_ctrl = ON
37: A_alert = ON
38: L_alert = RED
39: Else:
40: F_ctrl = OFF
41: P_ctrl = OFF
// Step 4: Check gas concentration thresholds
42: If (NH3_s > NH3_max) OR (CH4_s > CH4_max):
43: F_ctrl = ON// Activate fan for gas removal
44: A_alert = ON
45: L_alert = RED
46: Else:
47: L_alert = GREEN
// Step 5: Check dust and light thresholds
48: If (D_s > D_max) OR (L_s > L_max):
49: A_alert = ON// Trigger buzzer alert
50: L_alert = RED
// Step 6: Transmit data to ThingSpeak cloud
51: If (Wi-Fi connected):
52: D_cloud = Transmit (T_s, H_s, NH3_s, CH4_s, D_s, L_s, SM_s, WF_s)
53: to ThingSpeak via HTTP protocol
54: Else:
55: Attempt reconnection to Wi-Fi
56: Wait (30 seconds)
57: End While
4. Sensor validation
Table 4 compares the sensors used to detect temperature, humidity, ammonia, methane, lux, and dust, assessing their accuracy and reliability in an Internet of Things (IoT) based system for monitoring poultry houses. A total of 15 days of data were collected for the study.
To better understand the prototype model sensors, a compressive linear correlation method was used with commercially available devices. In Figs 5 - 7, the correlation between the prototype model sensor and a commercially available sensor is plotted. A significant correlation between BME680 and UT333s data is evident in Fig 5, with humidity readings showing slightly higher agreement (a higher R2) than temperature readings.
Both sensors (MQ137 and MQ4) correlate strongly with their respective reference sensors depicted in Fig 6. The methane sensor shows a slightly stronger correlation (a higher R2). Small negative intercepts in both equations suggest a slight underestimation at low concentrations.
Dust sensor correlates reasonably well with the aerosol monitor (R2 = 0.75505). Light sensors (BH1750 and UNI-T UT383) show excellent agreement (R2 = 0.99954), suggesting near identical performance. Graphical plotting of these two sensors is depicted in Fig 7.
4.1. Descriptive analysis of data from commercial devices and sensors
In Table 5, comparison and analysis of data collected from various commercially available sensors and the sensor integrated into the prototype are depicted. The purpose of the comparison is to show how accurately the prototype sensor performs compared to standard market devices under similar environmental conditions. For better comparison, 15 days of data have been surveyed for both the prototype sensor and commercially available sensors. During the comparison, the results were very similar, and in some cases, the prototype sensor performed better. For temperature measurement, both the BME680 and UT333S commercial sensors provide similar results and exhibit very low error margins. A similar result was found for humidity measurement. For ammonia concentration, both the commercial sensor and the sensor in our prototype provide a mean value of 5–6 ppm. Also, the error difference was very small, indicating that the prototype can detect harmful gases with high accuracy. For methane detection, both the prototype and commercial sensors provide values around 5–6 ppm. Overall, the comparison indicates that the prototype developed in this study achieves performance comparable to that of standard market sensors.
4.2. Average daily assessment
In Fig 8, over 15 days in August, the conditions inside the poultry farms: temperature, humidity, dust density, ammonia, methane, and light concentration were monitored. These details were recorded every half hour, gathering 48 measurements daily, for a total of 720 per month. The data charts were analyzed, showing daily averages as bar heights, total values as stacked columns, and separate lines indicating high and low ranges, making it easier to interpret fluctuations and trends. This research aimed to determine whether the surrounding environment impacted poultry farming.
4.3. Environmental parameter analysis for poultry farm over 15 days
The environmental parameters were analyzed, and the results are presented in Table 6. For each parameter, the table provides mean values, SD, SEM, and the number of times the safe limits were exceeded (Unsafe count). The numerical data for quality (dust concentration, ammonia concentration, methane concentration, and light concentration) are presented daily over a month. This table presents the variations in interior temperature, relative humidity, dust concentration, ammonia concentration, methane concentration, and light intensity with the day and date over a 15-day period of daylight in August. The relatively low SEM and SD findings for this study are promising.
Fig 9 shows six bar graphs of environmental factors in a poultry farm over 15 days. Temperature fluctuates from 30°C on Day 1–35°C on Day 2, dropping to 27–29°C by Day 7, then increasing again to 34°C before stabilizing at 28–29°C on Days 14–15 depicted in Fig 9 (a). In Fig 9 (b) Humidity starts at 60–65%, rising to 70% on Days 3–6, then stabilizing at 60–65% with spikes on Days 11–14, returning to 60% on Day 15. In Fig 9 (c) dust concentration drops from 10 mg/m³ on Day 1–2–3 mg/m³ on Days 2–3, rising again on Days 4–5, then decreasing toward the end. Ammonia concentration starts at 5 PPM, drops to 1 PPM on Day 5, and rises again on Days 6–9 before stabilizing towards the end depicted in Fig 9 (d). In Fig 9 (e) methane concentration rises to 6 PPM on Day 3, peaks at 7–8 PPM on Days 10–11, then decreases to 5 PPM by Day 15. Finally in Fig 9 (f) Light concentration fluctuates from 50–55 lux on Days 1–2, drops on Day 3, and rises again on Days 6, 14, with stability at 45–50 lux on other days.
Table 7 presents a 15 days analysis of temperature, humidity, dust concentration, ammonia concentration, methane concentration, and light concentration in a poultry house throughout August. The sample size for each parameter was 15, which corresponds to August’s 15 days, with mean values of 32.71°C for temperature, 67.23% for relative humidity, 5.33 µg/cm³ for dust concentration, 4.89 PPM for ammonia concentration, 4.23 PPM for methane concentration, and 50.7 for light concentration. The data showed that 20% dust concentration, 33.33% humidity, and 13.33% light concentration readings were beyond the permissible range; however, none of the temperature, ammonia concentration, or methane concentration readings were above the threshold.
In Table 8, environmental conditions were checked against reference levels. The temperature reached 31.96°C; humidity was 67.65%, and dust measured 7.83 mg/m3. Ammonia: 4.26 ppm; methane: 3.35 ppm; illumination: 37.63 lux. Finally, after all the evaluations, it is observable that everything stayed below established safety thresholds.
5. Prototype preparation and validation with the existing model
The prototype model developed in [17,18] is not strong enough to provide the actual data. The 3D structure is not strong enough, and the device’s durability is also poor, whereas this study prototype has undergone extensive testing. In Fig 10, the prototype model is depicted. Several parts were indicated by an arrow sign. The box is 3D printed, strong, and durable. The system has a control unit enclosed in a blue casing and is connected to two cooling fans placed on a stable surface. The left side picture shows the internal circuit board, where a microcontroller, a breadboard, and other electronic components are connected. These components receive sensor data to control fan operation. The system is powered through external wiring to ensure uninterrupted operation. The view from the right-side picture shows that the control unit is operating and the cover is closed. At the top, there is a digital display, push buttons, and a sensor installed, which allows real time temperature monitoring and manual control. The cooling fans are connected to the control box, and the microcontroller controls their speed based on sensor inputs.
A complete setup of the prototype model with a solar panel is depicted in the Fig 11. It contains a water pump inside and a water flow sensor on top. It has two fans, one attached to the honeycomb pad and the other used to release hot air outside. The system uses a water flow sensor to circulate water through a honeycomb pad, which helps cool the air, and then the fan attached to the honeycomb pad blows the cooled air into the surrounding area.
In Table 9 represents a comparison between the sensors used in this proposed system and those in previous studies related to poultry farms. From the table, it can be seen that the proposed system includes all the major environmental parameters relevant to poultry farming, such as temperature, humidity, dust density, gas concentrations, luminosity, litter condition, and an early alarming system all integrated using Internet of Things (IoT) technology. In contrast, other studies have used only a few selected sensors for monitoring; for example, some previous works did not include temperature, humidity, or gas concentration sensors, while others lacked an early alarming system. Therefore, this proposed system is more comprehensive and effective in providing better environmental monitoring for poultry farms compared to previous works.
5.1. Prototype testing
In Fig 12, a prototype for a poultry farm has been developed to monitors real time environmental conditions, including dust density, concentrations of harmful gases such as methane and ammonia, light intensity, and litter status, using multiple sensors. To test the prototype under real world environmental conditions, a visit was made to a poultry farm where it was used. During testing, the prototype successfully monitored various environmental parameters at the poultry farm, including dust density, humidity, light intensity, litter condition, and concentrations of harmful gases (methane and ammonia). The acquired data is visualized on a wirelessly connected laptop through the ThingSpeak Internet of Things (IoT) base platform. This process was repeated for more than 15 days, and the collected data are also presented in Tables IV, V, and VI. To improve performance, the prototype model was moved to a different location within the farm. Fig 12 is licensed under CC BY 4.0.
6. Result, cost analysis & conclusion
The results reported in [60] are insufficient to monitor a large-scale poultry farm. Additionally, the author did not do extensive prototype testing. In our developed model, the results shown in Figs 13 and 14 are assessed in real time, and the stored 15-day data are previously depicted in Tables IV, V, and VI. In Fig 13, the upper figure represents the ammonia level, and the lower figure represents the methane level in the poultry farm. These two gases are harmful to any poultry farm, which is why real time monitoring is necessary. If, by any chance, these two gases exceed the safety level, the buzzer will activate.
In Fig 14 (a), the variation in light intensity from the digital light sensor BH1750 is shown. Similarly, Fig 14 (b) shows the real time temperature of the poultry farm, and Fig 14 (c) shows the litter status, which turns red when the litter is wet. On the other hand, when the temperature rises, the water flow will be automatically activated to reduce the farm’s excessive temperature. Fig 14 (d) and (e) represents the real time humidity and dust level of the poultry farm.
In Table 10, this study compares the proposed system with several state-of-the-art IoT based poultry monitoring solutions from the literature in terms of monitored parameters and implementation aspects. Previous systems usually monitor two to four parameters and rarely undergo longitudinal field validation, whereas our device integrates seven environmental sensors that have been continuously assessed for 15 consecutive days in a commercial poultry farm, with measurements being validated against market available reference sensors. The proposed platform is especially suitable to resource limited farms; unlike systems based solely to basic alarms or GSM messaging, it combines early warning alerts, automated evaporative cooling, solar power supply, and ThingSpeak based external monitoring at a total cost of USD 43.
6.1. Cost analysis
The total cost of developing the prototype model is 43 USD. This is tolerable for any farmer who wants to develop their career in poultry farming. As many youths in Bangladesh are pursuing this field as a career, making this device cheaply is also an advantage for them. In developing countries, monitoring systems are often underdeveloped because devices are costly; our model costs less than 50 USD, making it affordable for any subcontinental country. A breakdown of total costs is given in Table 11.
6.2. Conclusion
In this research, a smart poultry farm monitoring device has been designed, implemented, and tested under practical farm conditions. The system was motivated by the limitations of many existing monitoring devices, which often show unsatisfactory accuracy and monitor only a narrow range of environmental parameters. In contrast, the proposed device integrates seven sensors within a single compact, low-cost platform and has undergone extensive prototype testing, including a 15-day field validation against commercially available reference instruments. The system provides early detection alerts, automated evaporative cooling control, solar powered operation, and cloud based remote monitoring, all at a total cost of USD 43, which makes it suitable for deployment in resource limited settings such as small and medium poultry farms in Bangladesh. Live alert functionality enables faster corrective actions without guesswork, while automation reduces human error and lowers the labor required for routine environmental checks. By maintaining more stable environmental conditions, the system helps to reduce stress, keep bird’s cleaner, and lower the risk of disease spread within the flock. Future enhancements may include the integration of mobile application alerts and additional remote tracking features to further increase usability and robustness in diverse farm contexts.
Supporting information
S1 File. Source code and demonstration video of the IoT-based poultry farm monitoring system.
Compressed folder containing (1) the complete ESP32 source code for sensor acquisition, actuator control, water flow monitoring, OLED display, and ThingSpeak communication, and (2) a demonstration video showing the system’s operation. Also Available at: https://github.com/mdzahidhasanbuiyan/IoT-Based-Automated-Poultry-Farming-Monitoring?tab=readme-ov-file
https://doi.org/10.1371/journal.pone.0356528.s002
(ZIP)
References
- 1. Panda B. Structure and problems of the poultry industry in southern Asia. World’s Poultry Science Journal. 1989;45(1):66–71.
- 2. Rahman SM, Roy BK, Shahriar SIM, Nipa FY. Poultry industry in Bangladesh: issues and challenges. Int j bus manag soc res. 2015;2(1):71–9.
- 3. So-In C, Poolsanguan S, Rujirakul K. A hybrid mobile environmental and population density management system for smart poultry farms. Computers and Electronics in Agriculture. 2014;109:287–301.
- 4.
Anowar Hossen Faysal Md, Rasel Ahmed Md, Masudur Rahaman Md, Ahmed F. A Review of Groundbreaking Changes in the Poultry Industry in Bangladesh Using the Internet of Things (IoT) and Computer Vision Technology. In: 2021 International Conference on Automation, Control and Mechatronics for Industry 4.0 (ACMI), 2021. 1–6. https://doi.org/10.1109/acmi53878.2021.9528235
- 5. Peprah F, Gyamfi S, Amo-Boateng M, Buadi E, Obeng M. Design and construction of smart solar powered egg incubator based on GSM/IoT. Scientific African. 2022;17:e01326.
- 6. Ahmed B, Shabbir H, Naqvi SR, Peng L. Smart agriculture: current state, opportunities, and challenges. IEEE Access. 2024;12:144456–78.
- 7. Naseer A, Shmoon M, Shakeel T, Ur Rehman S, Ahmad A, Gruhn V. A systematic literature review of the iot in agriculture—global adoption, innovations, security, and privacy challenges. IEEE Access. 2024;12:60986–1021.
- 8. Bhuiyan MR, Wree P. Animal behavior for chicken identification and monitoring the health condition using computer vision: a systematic review. IEEE Access. 2023;11:126601–10.
- 9. Ali M, Imran M, Baig MS, Shah A, Ullah SS, Alroobaea R, et al. Intelligent control shed poultry farm system incorporating with machine learning. IEEE Access. 2024;12:58168–80.
- 10. Godinho A, Vicente R, Silva S, Coelho PJ. Wireless environmental monitoring and control in poultry houses: a conceptual study. IoT. 2025;6(2):32.
- 11.
Malika NZ, Ramli R, Alkawaz MH, Md Johar MG, Hajamydeen AI. IoT based Poultry Farm Temperature and Humidity Monitoring Systems: A Case Study. In: 2021 IEEE 9th Conference on Systems, Process and Control (ICSPC 2021), 2021. 64–9. https://doi.org/10.1109/icspc53359.2021.9689101
- 12.
Sanjaya WSM, Maryanti S, Wardoyo C, Anggraeni D, Aziz MA, Marlina L, et al. The development of quail eggs smart incubator for hatching system based on microcontroller and Internet of Things (IoT). In: 2018 International Conference on Information and Communications Technology (ICOIACT), 2018. 407–11. https://doi.org/10.1109/icoiact.2018.8350682
- 13. Habib K, Md N, Shah ME, Ibrahim A. Economic viability of introducing renewable energy in poultry industry of Bangladesh. International Journal of Scientific & Engineering Research. 2019;10(3):2229–5518.
- 14. Nakrosis A, Paulauskaite-Taraseviciene A, Raudonis V, Narusis I, Gruzauskas V, Gruzauskas R, et al. Towards early poultry health prediction through non-invasive and computer vision-based dropping classification. Animals. 2023;13(19):3041.
- 15. Gupta M, Abdelsalam M, Khorsandroo S, Mittal S. Security and privacy in smart farming: challenges and opportunities. IEEE Access. 2020;8:34564–84.
- 16. Heatwave causes Tk 2 billion poultry losses in 10 days. The Financial Express. 2024;I.
- 17. Da Rocha Balthazar G, Silveira RMF, Aldrigue JT, Da Silva IJO. Development and validation of a rapid-prototyping IoT-based sensor system for poultry house microclimate monitoring. Smart Agricultural Technology. 2025;12:101197.
- 18. Hélène OK, Kuradusenge M, Sibomana L, Mwaisekwa II. TinyML and IoT-enabled system for automated chicken egg quality analysis and monitoring. Smart Agricultural Technology. 2025;12:101162.
- 19. Morchid A, Oughannou Z, Alami RE, Qjidaa H, Jamil MO, Khalid HM. Integrated internet of things (IoT) solutions for early fire detection in smart agriculture. Results in Engineering. 2024;24:103392.
- 20. Morchid A, Jebabra R, Ismail A, Khalid HM, El Alami R, Qjidaa H, et al. IoT-enabled fire detection for sustainable agriculture: a real-time system using flask and embedded technologies. Results in Engineering. 2024;23:102705.
- 21. Morchid A, Jebabra R, Khalid HM, El Alami R, Qjidaa H, Ouazzani Jamil M. IoT-based smart irrigation management system to enhance agricultural water security using embedded systems, telemetry data, and cloud computing. Results in Engineering. 2024;23:102829.
- 22. Elwakeel AE. A smart automatic control and monitoring system for environmental control in poultry houses integrated with earlier warning system. Sci Rep. 2025;15(1):31630. pmid:40866454
- 23. Bhattad S, Ahmed AA, Abdel-Wareth AA, Lohakare J. An IoT-based system for measuring diurnal gas emissions of laying hens in smart poultry farms. Agri Engineering. 2025;7(8):267.
- 24. Qi F, Zhao X, Shi Z, Li H, Zhao W. Environmental factor detection and analysis technologies in livestock and poultry houses: a review. Agriculture. 2023;13(8):1489.
- 25. Chang Y-S, Tu L-Y. Use of IoT sensors to build an intelligent monitoringand control system for poultry house environment. Sensors and Materials. 2023;35(12):3997.
- 26. Lufyagila B, Machuve D, Clemen T. IoT-powered system for environmental conditions monitoring in poultry house: a case of Tanzania. African Journal of Science, Technology, Innovation and Development. 2021;14(4):1020–31.
- 27. Orakwue SI, Al-Khafaji HMR, Chabuk MZ. IoT based smart monitoring system for efficient poultry farming. WEB. 2022;19(1):4105–12.
- 28. Zheng H, Zhang T, Fang C, Zeng J, Yang X. Design and implementation of poultry farming information management system based on cloud database. Animals. 2021;11(3):900.
- 29. Hofstetter D, Fabian E, Lorenzoni AG. Ammonia generation system for poultry health research using arduino. Sensors. 2021;21(19):6664.
- 30. Shahzad K, Sultan M, Bilal M, Ashraf H, Farooq M, Miyazaki T, et al. Experiments on energy-efficient evaporative cooling systems for poultry farm application in multan (Pakistan). Sustainability. 2021;13(5):2836.
- 31.
Hambali MFH, Patchmuthu RK, Wan AT. IoT based smart poultry farm in Brunei. 2020.
- 32. Pereira WF, Fonseca L da S, Putti FF, Góes BC, Naves L de P. Environmental monitoring in a poultry farm using an instrument developed with the internet of things concept. Computers and Electronics in Agriculture. 2020;170:105257.
- 33. Akhund TMdNU, Snigdha SR, Reza MdS, Newaz NT, Saifuzzaman Mohd, Rashel MR. Self-powered IoT-based design for multi-purpose smart poultry farm. Smart Innovation, Systems and Technologies. Springer Nature Singapore. 2020. 43–51.
- 34. Lorencena MC, Southier LFP, Casanova D, Ribeiro R, Teixeira M. A framework for modelling, control and supervision of poultry farming. International Journal of Production Research. 2019;58(10):3164–79.
- 35. Astill J, Dara RA, Fraser EDG, Roberts B, Sharif S. Smart poultry management: smart sensors, big data, and the internet of things. Computers and Electronics in Agriculture. 2020;170:105291.
- 36. Saeed M, Abbas G, Alagawany M, Kamboh AA, Abd El-Hack ME, Khafaga AF, et al. Heat stress management in poultry farms: a comprehensive overview. J Therm Biol. 2019;84:414–25. pmid:31466781
- 37.
Manshor N, Rahiman ARA, Yazed MK. IoT Based Poultry House Monitoring. 2019.
- 38.
Islam MdM, Sourov Tonmoy S, Quayum S, Sarker AR, Umme Hani S, Mannan MA. Smart Poultry Farm Incorporating GSM and IoT. In: 2019 International Conference on Robotics,Electrical and Signal Processing Techniques (ICREST), 2019. 277–80. https://doi.org/10.1109/icrest.2019.8644300
- 39. Deepika N, Shivshankar GP. Experimental investigations on quality of water used in poultry farm using sensors. Lecture Notes in Electrical Engineering. Springer Singapore. 2019. 437–45.
- 40. Ranjan A, Sinha R, Devi I, Rahim A, Tiwari S. Effect of heat stress on poultry production and their managemental approaches. IntJCurrMicrobiolAppSci. 2019;8(02):1548–55.
- 41. Chakraborty A, Gupta RD, Kabir MZ, Dhar S. Development of an IoT-enabled cost-effective asthma patient monitoring system: integrating health and indoor environment data with statistical analysis and data visualization. Internet of Things. 2023;24:100942.
- 42. Sadikin N, Sari M, Sanjaya B. Smarthome using android smartphone, arduino uno microcontroller and relay module. J Phys: Conf Ser. 2019;1361(1):012035.
- 43. Alam MN, Buiyan MZH, Al Hasan Anik MA, Rahman A, Lamisa NT. An innovative solar power can satellite model prototype to perceive the environmental data. Lecture Notes in Networks and Systems. Springer Nature Singapore. 2022. 869–84.
- 44.
Bolla DR, Palle SS, Penna M, Keshavamurthy S. An IoT Based Smart E-Fuel Stations Using ESP-32. 2020.
- 45. Al-Ali AR, Al Nabulsi A, Mukhopadhyay S, Awal MS, Fernandes S, Ailabouni K. IoT-solar energy powered smart farm irrigation system. Journal of Electronic Science and Technology. 2019;17(4):100017.
- 46. Shih L-M, Tsai H-L, Tsai C-Y. Design and evaluation of wireless DYU air box for environment-monitoring IoT system on Da-Yeh University Campus. Applied Sciences. 2024;14(5):2201.
- 47. Gümüser MA, Pichlhöfer A, Korjenic A. A comparison of capacitive soil moisture sensors in different substrates for use in irrigation systems. Sensors (Basel). 2025;25(5):1461. pmid:40096286
- 48.
Adhim FI, Priananda CW, Rahayu LP, Pramudijanto J, Tsauri DA, Susila J. Carbon Monoxide and Methane Gas Identification System. 2019.
- 49. Swelum AA, El-Saadony MT, Abd El-Hack ME, Abo Ghanima MM, Shukry M, Alhotan RA, et al. Ammonia emissions in poultry houses and microbial nitrification as a promising reduction strategy. Science of The Total Environment. 2021;781:146978.
- 50. Ellen HH, Bottcher RW, von Wachenfelt E, Takai H. Dust levels and control methods in poultry houses. J Agric Saf Health. 2000;6(4):275–82. pmid:11217692
- 51. Leksrisompong N, Romero-Sanchez H, Plumstead PW, Brannan KE, Brake J. Broiler incubation. 1. Effect of elevated temperature during late incubation on body weight and organs of chicks. Poult Sci. 2007;86(12):2685–91. pmid:18029817
- 52. Pereira DF, Nääs IA. Estimating the thermoneutral zone for broiler breeders using behavioral analysis. Computers and Electronics in Agriculture. 2008;62(1):2–7.
- 53. van der Pol CW, van Roovert-Reijrink IAM, Maatjens CM, van den Brand H, Molenaar R. Effect of relative humidity during incubation at a set eggshell temperature and brooding temperature posthatch on embryonic mortality and chick quality. Poult Sci. 2013;92(8):2145–55. pmid:23873563
- 54. Bruzual JJ, Peak SD, Brake J, Peebles ED. Effects of relative humidity during the last five days of incubation and brooding temperature on performance of broiler chicks from young broiler breeders. Poult Sci. 2000;79(10):1385–91. pmid:11055841
- 55. Dekker SEM, Aarnink AJA, de Boer IJM, Koerkamp PWGG. Emissions of ammonia, nitrous oxide, and methane from aviaries with organic laying hen husbandry. Biosystems Engineering. 2011;110(2):123–33.
- 56. Raccoursier M, Thaxton YV, Christensen K, Aldridge DJ, Scanes CG. Light intensity preferences of broiler chickens: implications for welfare. Animal. 2019;13(12):2857–63.
- 57.
Wicaksono D, Perdana D, Mayasari R. Design and analysis automatic temperature control in the broiler poultry farm based on wireless sensor network. 2017.
- 58. Chen C-S, Chen W-C. Research and development of automatic monitoring system for livestock farms. Applied Sciences. 2019;9(6):1132.
- 59. Abdulwahab MM, Waled M, Osman AA, Al-Tahir A. Wireless sensor networks for real-time monitoring and controlling of poultry farm. JTEC. 2022;14(1):21–6.
- 60. Sayem NS, Chowdhury S, Haque AHMO, Ali MR, Alam MS, Ahamed S, et al. IoT-based smart protection system to address agro-farm security challenges in Bangladesh. Smart Agricultural Technology. 2023;6:100358.