1. Introduction
A very important, if not the most important, part of scientific research is laboratory measurements and those in real-world facilities. These are particularly important in fields of science that study processes occurring in natural and artificial environments. Despite the rich possibilities of simulating physical phenomena, measurements in real-world facilities can provide invaluable data on environmental processes. In the field of environmental engineering, and especially in the study of the climate inside buildings and the impact of the external environment on it, measurements can be particularly challenging [1]. The main reason is the lack of control over the external environment. Measurements taken on a specific day can be very difficult to repeat due to the variability of parameters such as outdoor temperature, wind speed, or sunlight [2]. Furthermore, the distribution of parameters within a room can be very diverse. This necessitates simultaneous measurement at multiple points, for example, time histories of CO2 concentration or temperature in occupied zones [3,4]. The main difficulty with such measurements is the need to use multiple sensors capable of recording data simultaneously. This is particularly problematic for measurements lasting weeks or months, especially those requiring the use of equipment shared by other people.
Traditional measurement and recording devices used in laboratories are typically expensive. Devices from different manufacturers, especially for data logging, may be incompatible. System scalability is also difficult. Furthermore, they are typically built for industrial and construction site measurements (e.g., vane anemometers), which can limit their use in laboratory conditions. Home-built devices based on off-the-shelf sensors and programmable microcontrollers such as Arduino or ESP-32 can be an alternative to these systems [5–8]. They are designed to work with numerous communication protocols and are highly adaptable to specific needs. Ready-made, calibrated sensors for environmental parameters such as air temperature, humidity, pressure, and CO2 concentration are commercially available. Memory cards with sufficient capacity for years of data collection can be used for data logging. 3D printing allows for the construction of housings and sensor mounting components tailored to a specific measurement station. Additional components, such as a real-time clock (RTC) or a user interface consisting of a screen and keyboard, enable further expansion of the device. ESP-32 microcontrollers can communicate wirelessly with each other, enabling centralized data collection from multiple physically unrelated sensors. All this allows for the construction of a functional device tailored to specific needs at a fraction of the cost of a commercially available off-the-shelf device.
The aim of this article is to analyze the potential application of measuring equipment based on programmable microcontrollers in measuring indoor microclimate. Since the Arduino-based equipment is used by scientists from our faculty for some time, the article presents conclusion based on the ongoing and completed research. It shows the abilities, limitations and observations from equipment use in real-world conditions.
2. Materials and methods
The Arduino microcontroller family (Figure 1) was created in 2005 in Italy [9]. The project’s goal was to create a microcontroller that would be inexpensive and easy to use, even for those just beginning to learn programming. Although initially intended as an educational tool, Arduino has evolved into a platform with a wide range of applications and is used in many practical devices. The Arduino project involved developing both a microcontroller board and a programming environment that allows for easy program writing and uploading. Today, this environment, called the Arduino IDE, has become an industry standard and is also widely used for programming boards from other manufacturers. This is possible because the entire project is based on an open source license; many manufacturers also produce their own low-cost Arduino boards based on this framework.

Figure 1
Examples of microcontrollers that can be programmed in the Arduino IDE environment with prices (June 2026, Poland, Allegro.pl, only new product and domestic sellers): (a) Arduino Uno (17.89 PLN), (b) Arduino R4 Wifi (115.38 PLN, but about half the price on Chinese sites), (c) Arduino R4 minima (57.79 PLN, but much cheaper on Chinese sites), (d) Arduino Mega (66.50 PLN), (e) ESP-32 Lolin (19.71 PLN), (f) Arduino Nano (16.85 PLN), (g) Arduino pro mini (14.99 PLN), (h) ESP-8266 on a board shaped like an Arduino (22.09 PLN), and (i) Raspberry Pi Pico (20.44 PLN).
Source: Authors’ contribution.
A microcontroller is a type of small computer integrated into a single integrated circuit. It contains flash memory (roughly equivalent to a hard drive) onto which programs can be uploaded, a processor, random access memory (RAM), and an input/output interface. Once programmed, it can operate in conjunction with a computer, transmitting or receiving data via universal serial bus (USB), or standalone. The first case can be used, for example, when the Arduino controls a laboratory station – we can change preset parameters from the computer, such as fan speed or the temperature to which a heater heats the air. We will also receive real-time readings from sensors. The second case – a microcontroller operating independently – would be useful, for example, to build a data logger that collects data on the temperature of partitions and air in a room over several months.
The basic version of the Arduino microcontroller is the UNO (Figure 1a). It has an 8-bit Atmega 328 P processor running at 20 MHz, 32KB of program memory, 2KB of RAM, and 1KB of non-volatile electrically erasable programmable read-only memory (EEPROM) [10] memory. The board is equipped with a number of connectors (Figure 2): a USB port for communication with a computer and program uploads, and a power supply connector for use when the board operates without USB power. There are 14 pins (12 when using USB) – cable connectors that can be configured as digital inputs or outputs, and 6 that can also be analog inputs. Furthermore, the board has pins with an external power supply, allowing it to supply power to connected electronic modules. However, this version of the Arduino has limited use in device development due to its size and limited program memory. For simple applications, the Nano board (Figure 1f) is more often used, which has the same microcontroller and functions, but due to the double-sided assembly of components, it is much smaller. For standalone work, you can also use the Pro Mini board (Figure 1g), which differs only in the lack of USB support – this makes it smaller and uses less power, but to program it, you must connect it to a computer via a second Arduino board. For more complex applications, you can use the Arduino Mega board (Figure 1d). It has 54 digital input/output pins and 16 that can also be used as analog inputs. It also has a more powerful Atmega 2560 processor running at 16 MHz, 256KB of program memory, 8KB of RAM, and 4KB of EEPROM [10].

Figure 2
Interfaces of microcontroller Arduino Uno: red – USB plug, yellow – Digital in/out pins, blue – Power plug, purple – Power pins, and Green – Analog input or digital in/out pins.
Source: Authors’ contribution.
In 2023, two new versions of Arduino were created, designated R4 – Minima and Wifi (Figure 1b and c). They are based on a 32-bit RA4M1 ARM Cortex M4 microcontroller, clocked at 48 MHz, with 256 KB of program memory, and 32 KB of RAM [11]. In addition to the Arduino Uno’s set of inputs and outputs, it also has one analog output. The Wifi version also has a second ESP-32 microcontroller on the board (responsible for Wi-Fi communication), an RTC, and a simple light emitting diode (LED) display.
In addition to Arduino boards, the Arduino IDE can also be used with microcontrollers from the Chinese company Espressif Systems, among others. Their most popular microcontroller is the ESP-32, the same one used for wireless communication in the Arduino R4. It has been used independently in the Wemos Lolin32 board (Figure 1e). The processor’s operating frequency is an order of magnitude higher than in the previous examples – 240 MHz – and the program memory is 4MB [10]. However, the system’s greatest advantage is its built-in wireless communication module – Wi-Fi, Bluetooth, and its own ESP-now communication protocol. It allows for easy data transfer between multiple microcontrollers, and a connection to a Wi-Fi network for example for clock synchronization over the internet. The ESP-32 can also be put to sleep mode for a specified period of time, consuming very little power, making it suitable for building long-lasting battery-powered devices [12,13]. The Lolin32 board has 22 input/output pins, 12 of which can function as analog inputs, and a built-in battery charger that, once charged, can power a standalone microcontroller. The main difference between the ESP-32 and the Arduino family of boards is the operating voltage – while the Arduino operates at the 5 V standard, the ESP-32 uses 3.3 V. A major advantage of this family of microcontrollers is its low price, comparable to simplest Arduino boards without wireless communication based on ATmega chips.
Microcontrollers are designed to serve as a base for interfacing with other electronic components. They most often come in the form of pre-built modules. These can include input devices such as sensors, human interface device such as buttons, potentiometers, or encoders. Output devices can include displays, status LEDs, actuators such as servos or motors powering for example fans. Relays or metal-oxide-semiconductor field-effect transistors can even control high-power devices such as heaters. A microcontroller can communicate with other devices using simple signals such as on/off, analog, or pulse-width modulation. It also supports popular digital communication protocols such as UART, I2C, and SPI. External modules can expand the communication capabilities to include protocols such as Ethernet and Modbus.
From the perspective of measuring indoor air parameters, the most important components working with the microcontroller will be sensors and data storage. Examples of sensors used in such measurements are provided in Table 1.
Table 1
Examples of sensors that can be used in indoor environment measurements [10]
| Name | Photo | Measured quantities | Communication | Additional information | Price (PLN) |
|---|---|---|---|---|---|
| 18DB20 |
| Temperature | 1-wire | Multiple sensors can be connected using three wires. Fragile, can break down after some time for no reason. | 4.80 |
| −55 to 125°C ±0.5°C | |||||
| DHT22 |
| Temperature | Has its own communication protocol | There is also cheaper variant – DHT11 with very low accuracy. | 10.34 |
| −40 to 125°C ±0.5°C | |||||
| Relative humidity | |||||
| 0–100% ±1% | |||||
| BMP280 |
| Temperature | I2C | Comes In multiple configurations: basic BMP280 and BME280 with additional relative humidity measurement. Each is available for supply voltage 3.3 V or 5 V. | 4.34 for BMP280, 21.07 for BME 280 |
| −40 to 85°C ±0.1°C | |||||
| Pressure | |||||
| BME280 | 300–1,100hPa ±1hPa | SPI | |||
| Relative humidity (Only BME280) | |||||
| 0–100% ±1% | |||||
| Si7021 |
| Temperature | I2C | 43.45 | |
| −10 to 85°C ±0.4°C | |||||
| Relative humidity | |||||
| 0–80% ±3% | |||||
| SCD41 |
| Temperature | I2C | Takes few seconds to power up. Measurements also take few seconds. | 249, but for one fifth of the price on Chinese sites. |
| −10 to 60°C ±0.8°C | |||||
| Relative humidity | |||||
| 0–100% ±6% | |||||
| CO2 concentration | |||||
| 400–5,000 PPM ±40 PPM | |||||
| AHT10 |
| Temperature | I2C | 12.49 | |
| -40 to 85°C ±0.3°C | |||||
| Relative humidity | |||||
| 0–100% ±2% | |||||
| Max31856 |
| Temperature | SPI | Amplifier for thermocouple. May be connected to several thermocouples using relays. Measurement takes few seconds. | 90 |
| −20 to 85°C ±0.7°C | |||||
| Transoptor |
| Detects presence of objects in detection area | On/off signal | Can be used to detect opening of windows, doors, etc. Can also be used to measure the rotational speed of rotor in flowmeter (Figure 5). | 4.03 |
Prices at June 2026 from Allegro.pl, only new products and domestic sellers.
Source: Authors’ contribution.
Measurement data could be stored in RAM (in program variables), but this memory is retained only as long as the system is powered. After restarting the microcontroller, this memory is cleared. Atmega microcontrollers have non-volatile EEPROM memory, but its capacity is very small. A solution is to use an secure digital card reader. The card has a huge capacity compared to the amount of data collected. An additional advantage is compatibility with the file system used in PCs, making data easy to download. Once the card is inserted into the computer, it appears as a text file, the contents of which can be easily downloaded to a spreadsheet.
Another component needed to build a data logger is a RTC. It differs from a standard electronic clock in that instead of a display, it has an interface for communicating with the microcontroller. It also has a battery backup to keep the clock running when the power is off. The clock allows for accurate recording of measurement times, enabling synchronization of data collected from different devices. Popular RTC models include the DS1307 and the more accurate DS3231.
The final element is the user interface – a display and a simple keyboard. This is not required, but it significantly simplifies using the device and monitoring its proper operation. It allows you to check the current time and, if necessary, set the clock, check sensor readings, or set the measurement frequency.
The entire device can be enclosed in a 3D-printed enclosure. A diagram of the finished data logger is shown in Figure 3. Because Arduino was designed with learning programming in mind, writing a program for the logger is simple. Libraries, i.e., ready-made program fragments, for example, for controlling sensors or memory cards, make the programming easier. For those who want to learn Arduino programming from their own experience, I recommend the free course on the Forbot website for beginners, and the YouTube channel “Towary modne” (Arduino playlist) for more advanced users.

Figure 3
Example of a data logger diagram.
Source: Authors’ contribution.
3. Results
Thanks to the ability to customize the device to individual needs, Arduino-based data loggers have been used for years in research by employees of the Department of Heating and Ventilation at the Silesian University of Technology. Examples of such devices include:
− A measurement station for examining the effect of control methods on the operation of a ventilation unit with a heat recovery capacitive heat exchanger (Figure 4). Detailed construction of the station and measurement results are published in the study by Koper [14]. Because individual measurements were short, the results were not saved to a memory card; they were transmitted directly to a computer. In addition to reading data from sensors, the Arduino also controlled the device. Thanks to the ability to upload programs, various control algorithms could be tested without physically reconfiguring the station. The biggest challenge in this station was making a vane flowmeter that could be made using 3D printer, especially the rotor that would be balanced and could be printed without supports. After many iterations and perfecting the design, gained knowledge was used to construct the anemometers presented in Figure 4.
− Vane anemometers for measuring the ventilation system in a road tunnel [2]. The aim of the study was, among other things, to examine the time it takes for air from fire-ventilation fans to reach subsequent locations in the tunnel. This required measuring air velocity at multiple points simultaneously. Because the flow was unidirectional, a vane anemometer could be used. Seven anemometers were constructed, as shown in Figure 5. This device could be powered by a power bank, enabling long-term operation. Before measurements, the anemometers were calibrated in a wind tunnel. Thanks to the fact that the Faculty has access to wind tunnel, which is normally used to calibrate other sensors, this task was easy.
− A stationary air parameter measurement system in a classroom, integrated with an automatic window opening system (Figure 6) [15]. It was developed as part of a project-based learning initiative with students. It is based on an Arduino Mega microcontroller. It records room parameters (temperature, humidity, CO2 concentration), airflow through the ventilation grille, and external environment parameters – temperature and humidity. Based on data from the sensors, it also controls window opening. Ventilation grille (Figure 6, red) was equipped with additional Arduino microcontroller. The grille contains flowmeter and temperature/humidity sensor. In addition to prolonging transmission distance, second Arduino also limited number of cables between central unit and the grille to just three: two for power supply (+5 V, GND) and one to universal asynchronous receiver-transmitter (UART) communication (one wire on UART allows only transmission in one direction which in this case was enough).
− Thermocouple data loggers for long-term measurements, based on the Max31856 thermocouple amplifier. For about a year, they have been measuring air and partition temperatures in two rooms of University of Technology employees. The experience from prolonged use shows that the circuit with a single thermocouple amplifier and relays for individual thermocouples is more reliable than separate amplifier for each thermocouple (Figure 7).
− Wireless temperature recording system based on ESP32, developed as part of a master’s thesis (Figure 8), [14]. It consists of a central unit collecting data from eight wireless sensors. They are battery-powered, but thanks to the ESP32’s sleep mode, they operated for 32 days without charging during testing.
There are more examples of microcontroller use in the department’s research, but due to the limited length of this article, only the most important ones are cited.

Figure 4
A measurement station for testing the influence of the control method on the operation of a ventilation device with a heat recovery storage exchanger [14].
Source: Authors’ contribution.

Figure 5
Arduino-based vane anemometer. The arrow indicates the location of the anemometer during measurements. Right picture from [2].
Source: Authors’ contribution.

Figure 6
Stationary measurement system in the classroom. Red – ventilation grille with vane flow meter, green – SCD41 sensor, and yellow – outside temperature and humidity sensor (BME280) [15].
Source: Authors’ contribution.

Figure 7
Thermocouple recorders.
Source: Authors’ contribution.

Figure 8
Wireless temperature recording system, based on ESP32 designed by student Antonina Marzec as part of her master’s thesis [12].
Source: Authors’ contribution.
4. Discussion
As these examples demonstrate, despite their simplicity and origins as an educational project, microcontrollers based on the Arduino IDE can be a useful tool in scientific research. Thanks to their extensive customization options and low price, they can be particularly useful as data loggers for multiple sensors.
The biggest limitation of this technology is the lack of specialized sensors. While basic parameters such as temperature and humidity can be measured, there are no inexpensive sensors for parameters like pressure with an accuracy of 1 Pa or solar radiation. Until recently, inexpensive CO2 concentration sensors were unavailable, but this changed with the introduction of the SCD41 sensor (Table 1). A possible solution could be the development of custom sensors, such as air flow meters. Currently, the Department is working on an Arduino-based ultrasonic flowmeter, basing on the work of scientists from University of Florence presented in the study by Allotta et al. [7]. Vane anemometer (Figure 5) has also been developed independently.
In addition to measurement instruments, Arduino can also be used to build automated devices that serve as the subject of research. Examples include a window-opening mechanism (Figure 6) or a test rig for investigating capacitive heat exchangers (Figure 4).
Continuous technological progress and the falling cost of electronic components are expanding the possibilities for building electronic devices from scratch. In the near future, the capabilities of Arduino microcontrollers are set to increase significantly thanks to the newly introduced Arduino Q [11]. It features a microcontroller and a Linux-based computer integrated onto a single board. The computer enables the use of advanced applications, such as web servers, as well as support for displays, audio, and even AI. Thanks to the microcontroller, the board can connect to and control other devices, just like earlier versions of Arduino.
5. Conclusion
As demonstrated by examples of the use of Arduino-based devices in scientific research conducted by the Department’s staff, this can be a useful and helpful tool under the right conditions.
Despite the shortcomings, its greatest advantage is the ability to build a low-cost system for measuring a specific physical quantity at multiple points, which is particularly useful for measuring environmental parameters within a room.
Furthermore, the simplicity of the devices’ construction and programming allows them to be adapted to specific needs. It is also possible to build devices tailored to a specific location – such as a flowmeter permanently mounted in a ventilation grille (Figure 6).
All those characteristics make microcontroller-based devices useful in measurement work. Although they cannot always completely replace off-the-shelf measurement equipment, they can complement it, increasing the number of measurements that can be performed simultaneously.
Funding information
This work was supported by the Silesian University of Technology under the BK Grant.
Author contributions
Antonina Marzec designed the wireless temperature measurement system and provided its photo and description for the paper. The remaining part was made by Piotr Koper.
Conflict of interest statement
Authors state no conflict of interest.