Submitted:
15 December 2025
Posted:
17 December 2025
You are already at the latest version
Abstract
Brazilian aquaculture, particularly fish farming, has shown remarkable growth over the past decade, becoming one of the fastest-expanding sectors in animal production. This study presents the development and validation of an electronic system and a methodology designed to estimate carbon dioxide (CO₂) concentration in excavated fishponds, aiming to enhance understanding of the carbon footprint in aquaculture. The proposed system, composed of small-scale greenhouses equipped with ESP32 microcontrollers and CO₂ and temperature sensors, was tested in fishponds located in western Paraná, Brazil. Correlations between temperature and CO₂ concentration were analyzed under different weather conditions—clear sky, cloudy, and nighttime periods. Results indicated a significant negative correlation between temperature and CO₂ concentration outside the greenhouses, suggesting that daytime heating reduces ambient CO₂ levels. In contrast, internal concentrations within the greenhouses remained relatively stable, averaging 400 ppm on clear days and 416 ppm on cloudy days. During the nighttime, average CO₂ concentrations reached 588 ppm outside and 416.8 ppm inside the greenhouse. These findings highlight the temporal and climatic variability of CO₂ levels in aquaculture environments and reinforce the importance of accurate monitoring systems for assessing the carbon footprint in excavated pond systems.
Keywords:
1. Introduction
2. Materials and Methods
2.1. Assembly of the Embedded Electronic System
2.2. Description of Materials
2.3. Calibração dos Sensores e Programação
2.4. Data Collection
3. Results
3.1. Electronic Circuit
3.2. Microcontroller Programming
3.3. Embedded Electronic System Inside the Chamber
3.4. Preliminary Tests of the Electronic System
3.4.1. Results for Clear-Sky and Cloudy Weather Conditions
3.4.2. Results for the Nighttime Period
4. Discussion
4.1. Influence of Climatic Conditions on CO₂ Variation
4.2. Nighttime Dynamics and CO₂ Accumulation
4.3. Performance and Applicability of the Electronic System
4.4. Connections with Carbon Footprint and Sustainability
5. Conclusion
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AM2302/DHT22 | Digital Temperature and Humidity Sensor |
| ANOVA | Analysis of Variance |
| BMP180 | Barometric Pressure and Temperature Sensor |
| CAPES | Brazilian Federal Agency for Support and Evaluation of Graduate Education |
| CO₂ | Carbon Dioxide |
| Embrapa | Brazilian Agricultural Research Corporation |
| ESP32 | Low-power Dual-core Microcontroller |
| GEMAq | Aquaculture Management and Studies Group |
| GPS | Global Positioning System |
| IDE | Integrated Development Environment |
| INMET | Brazilian National Institute of Meteorology |
| LoRa | Long-Range Radio Communication Protocol |
| O₂ | Oxygen |
| ppm | Parts per Million |
| RTC | Real-Time Clock |
| SD | Secure Digital (Memory Card) |
| UNIOESTE | Western Paraná State University |
References
- Instituto Brasileiro de Geografia e Estatística; IBGE. Pesquisa Pecuária Municipal – PPM; SIDRA/IBGE, 2024. [Google Scholar]
- São José, F.D.; Novo, Y.D.C.; Farias, A.; Magalhães, L.; Fonseca, M. Mapeamento de viveiros escavados para aquicultura no Brasil por sensoriamento remoto; Embrapa Territorial, 2022. [Google Scholar]
- Lima, A.F.; da Silva, A.P.; Rodrigues, A.P.O.; de Sousa, D.N.; Bergamin, G.T.; de Lima, L.K.F.; Flores, R.M.V. Manual de piscicultura familiar em viveiros escavados; Embrapa, 2024. [Google Scholar]
- Werneck, P.R.; Macedo, H.R.; Morsoleto, F.M.S.; Lira, K.C.S.; Feiden, A. Use of georeferencing as a sustainable planning tool for aquaculture production in small municipalities: a case study for Ouro Verde do Oeste/PR. Research, Society and Development 2023, 12, e17012338683. [Google Scholar] [CrossRef]
- Morsoleto, F.M.S.; Werneck, P.R.; Macedo, H.R.; Pisol, C.D.; Vanelli, J.; Makrakis, S.; Ballester, E.L.C.; Feiden, A. Sustainable planning geotechnologies for fish farming expansion in small municipalities: A case study of Pato Bragado, Brazil. Latin American Journal of Aquatic Research 2024, 52, 563–574. [Google Scholar] [CrossRef]
- Boyd, C.E.; Tucker, C.S. Pond Aquaculture Water Quality Management; Springer: New York, 2012. [Google Scholar]
- Boyd, C.E. Water Quality: An Introduction; Springer Nature: Cham, 2019. [Google Scholar]
- Bunting, S.W. Principles of Sustainable Aquaculture: Promoting Social, Economic and Environmental Resilience; Routledge: London, 2013. [Google Scholar]
- World Meteorological Organization (WMO). Greenhouse Gas Bulletin No. 20: The State of Greenhouse Gases in the Atmosphere Based on Global Observations through 2023; WMO: Geneva, 2024. [Google Scholar]
- Instituto Nacional de Meteorologia (INMET). Glossário de Meteorologia. Available online: https://portal.inmet.gov.br/glossario/glossario (accessed on 10 December 2025).
- R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2022; Available online: https://www.R-project.org/.
- Wickham, H. ggplot2: Elegant Graphics for Data Analysis; Springer: New York, 2016. [Google Scholar] [CrossRef]
- Mitu, N.S.; Vassilev, V.; Tabany, M.R. Low cost, easy-to-use, IoT and cloud-based real-time environment monitoring system using ESP8266 microcontroller. International Journal of Internet of Things and Web Services 2021, 6, 30–44. Available online: https://repository.londonmet.ac.uk/6999/.
- Jiang, J.; Shi, G.; Zhao, D.; Shi, B.; Li, Z.; Zhu, Z. Research on life cycle of wireless network for measuring environmental parameters in aquaculture. Transactions of the Chinese Society of Agricultural Engineering 2014, 30, 147–154. Available online: https://www.tcsae.org/nygcxb/article/abstract/20140722.
- Stanghellini, C.; Incrocci, L.; Gázquez, J.C.; Dimauro, B. Carbon dioxide concentration in Mediterranean greenhouses: how much lost production? In International Symposium on High Technology for Greenhouse System Management: Greensys 2007; Acta Horticulturae; Volume 801, pp. 1541–1550. [CrossRef]
- Zhang, C.; Liu, H.; Wang, C.; Zong, Z.; Wang, H.; Zhao, X.; Li, Y. Testing and analysis on the spatial and temporal distribution of light intensity and CO2 concentration in solar greenhouse. Sustainability 2023, 15, 7001. [Google Scholar] [CrossRef]
- Streit, S.A.F. Análise das metodologias de pegada de carbono na aquicultura continental: uma revisão sistemática. Master Dissertation, Universidade Federal do Rio Grande do Sul, 2023. Available online: https://lume.ufrgs.br/bitstream/handle/10183/276270/001200396.pdf?sequence=1 (accessed on 10 December 2025).
- Chunzhuk, E.A.; Grigorenko, A.V.; Kiseleva, S.V.; Chernova, N.I.; Vlaskin, M.S.; Ryndin, K.G.; Dudoladov, A.O. Effects of light intensity on the growth and biochemical composition in various microalgae grown at high CO₂ concentrations. Plants 2023, 12, 3876. [Google Scholar] [CrossRef] [PubMed]
- Marrero, M.; Carrilho, J.D.; da Silva, M.G. Effects of meteorological factors on CO₂ concentrations. AIVC Conference Proceedings, 2018; Available online: https://www.aivc.org/resource/effects-meteorological-factors-co2-concentrations.
- Pathakoti, M.; Gaddamidi, S.; Gharai, B.; Syamala, P.S.; Rao, P.V.N.; Choudhury, S.B.; Dadhwal, V.K. Influence of meteorological parameters on atmospheric CO₂ at Bharati, the Indian Antarctic research station. Polar Research 2018, 37, 1442072. [Google Scholar] [CrossRef]
- Saliba, M.; Micallef, A. Analysis and observations concerning concentrations of greenhouse gases measured over 11 years in the central Mediterranean region. WIT Transactions on Ecology and the Environment 2024, 262, 693–703. [Google Scholar] [CrossRef]
- Imasu, R.; Tanabe, Y. Diurnal and seasonal variations of CO₂ concentration in urban, suburban, and rural areas around Tokyo. Atmosphere 2018, 9, 367. [Google Scholar] [CrossRef]
- Anderegg, W.R.; Ballantyne, A.P.; Smith, W.K.; Majkut, J.; Rabin, S.; Beaulieu, C.; Pacala, S.W. Tropical nighttime warming as a dominant driver of variability in the terrestrial carbon sink. PNAS 2015, 112, 15591–15596. [Google Scholar] [CrossRef] [PubMed]










| Component | QTY | Function |
|---|---|---|
| ESP32 T-Beam with Battery Support, GPS, and LoRa | 3 | Microcontroller responsible for device processing |
| 18650 Rechargeable Battery, 3.7 V, 6800 mAh | 9 | Lithium-ion battery to power the microcontroller |
| 5V USB Charger | 3 | Power supply for the electronic circuit when installed in locations with available electricity |
| Micro SD Card Reader with 16 GB card | 3 | Storage unit for recording sensor readings |
| Real-Time Clock (RTC) DS3232 | 3 | Clock for recording date and time of sensor readings |
| MH-Z19B Sensor | 6 | Infrared sensor for CO₂ detection |
| BMP180 Sensor | 3 | Sensor for measuring ambient temperature and atmospheric pressure |
| AM2302 DHT22 Sensor | 3 | Sensor for ambient temperature and relative humidity |
| 8 mm Rebar | 12 m | Rebar for the greenhouse base |
| 4.2 mm Rebar | 18 m | Rebar for the greenhouse rods and top |
| 150-micron Plastic | 24 m² | Greenhouse covering |
| 5-liter Plastic Bottles | 8 | Used as floats for the pond greenhouses |
| Line | Command | Line | Command |
|---|---|---|---|
| 1 | #include "sdcard.h" | 5 | #include "sensor_co2.h" |
| 2 | #include "datetime.h" | 6 | #include "sensor_bmp180.h" |
| 3 | #include "sensor_dht22.h" | 7 | #include "power_mgr.h" |
| 4 | #include "sensor_ds18b20.h" | 8 | #include "sleep_control.h" |
| Line | Logical instruction |
|---|---|
| 1 | void setup() { |
| 2 | Serial.begin(9600); |
| 3 | Serial.println(“Initializing Setup...”); |
| 4 | initSleepController(); |
| 5 | initRTC(); |
| 6 | if (getMinute() % minutesbetweenreadings = = 0) { |
| 7 | ready = true; |
| 8 | initCO2(); |
| 10 | |
| 11 | initSDCard(); |
| 12 | initDHT22(); |
| 13 | initBMP180(); |
| 14 | } else { |
| 15 | ready = false; |
| 16 | } |
| 17 | Serial.println("Setup done!"); |
| 18 | } |
| Line | Logical Instruction |
|---|---|
| 1 | void loop() { |
| 2 | if (ready) { |
| 3 | Serial.println("------------------------------------"); |
| 4 | Serial.println("Realizando leituras..."); |
| 5 | String dateTime = getFormatedDateTime(); |
| 6 | double temperatureDHT = readTemperatureDHT22(); |
| 7 | double temperatureBMP = readTemperatureBMP180(); |
| 8 | int co2Indoor = readCO2Indoor(); |
| 9 | int co2outdoor = readCO2Outdoor(); |
| 10 | Serial.println("Date and Time: " + dateTime); |
| 11 | Serial.println("Indoor sensors:"); |
| 12 | Serial.println("Temperature (BMP): " + String(temperatureBMP)); |
| 13 | Serial.println("Carbon dioxide (CO2): " + String(IndoorCO2)); |
| 14 | Serial.println(""); |
| 15 | Serial.println("Outdoorsensors:"); |
| 16 | Serial.println("Temperature (DHT): " + String(temperatureDHT)); |
| 17 | Serial.println("Carbon dioxide (CO2): " + String(OutdoorCO2)); |
| 18 | writeSDCard("carbon.txt", dateTime + ";" + String(temperatureBMP) + ";" + String(IndoorCO2) + ";" + String(temperatureDHT) + ";" + String(OutdoorCO2), true); |
| 19 | Serial.println("Data recorded!"); |
| 20 | } else { |
| 21 | Serial.println("It’s not time to read yet. Waiting..."); |
| 22 | } |
| 23 | sleepESP32(); |
| 24 | } |
| Date and time | Temperature (BMP) | Internal CO₂ | Temperature (DHT) | External CO₂ | |
|---|---|---|---|---|---|
| 2025-05-13 14:30 | 25.2 | 410 | 28.3 | 420 | |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).