1. Introduction
Rainwater harvesting is becoming a popular practice in developed urban areas. It involves collecting and treating rainwater for domestic use, including drinking if properly treated. This practice has several benefits, such as flood prevention and conservation of water sources [
1]. One millimeter of rainfall per square meter is equivalent to one liter of water, indicating that the potential for rainwater harvesting is enormous. The use of rainwater as an alternative water source can help improve access to water for residents who lack reliable and efficient water supply, such as in the city of Morelia [
2]. The city’s accelerated population growth towards the peripheries has created social, economic, and political issues regarding unequal access to water, the transience of service, contamination, poor infrastructure, and power dynamics over water [
3].
The issues have spread to various sectors of the city, with the northern outskirts being one of the most affected areas, specifically the region known as La Aldea [
4]. In this locality, there are old and overly exploited wells that extract water from the intermediate flow at the depth of the water table, which is between 150 m and 160 m [
5]. Rainwater collected in catchment systems is often of lower quality and may not meet drinking water standards [
6]. Studies indicate that rainfall is effective in absorbing and removing aerosol particles present in the atmosphere due to the “in-cloud” and “under-cloud” entrainment processes [
7,
8].
A study in Hebei province, North China [
9], was conducted to determine the chemical composition of rainwater and its possible sources at three rural sites. The results suggested that rainwater has limited anion concentration due to the presence of HCO
3− and organic acids [
10,
11]. The most abundant cation is calcium, followed by ammonium. The predominant anions are sulfate and nitrate, which aligns with other studies [
12,
13]. Additionally, the study [
13] found high concentrations of the F
− ion, which could be due to the combustion of coal with high fluoride content.
A preliminary study was developed in Costa Rica [
14], specifically in the Poas Volcano National Park, from May to October 2017 by the Laboratory of Atmospheric Chemistry of the National University. The quality parameters of the analyzed rainwater were pH, electrical conductivity, and anions (F
−, Cl
−, NO
3− and SO
42−). The obtained results were pH = 2.50, 15.48 ± 0.22 mg/L for F
−, 205.2 ± 3.3 mg/L for Cl
−, and 64.0 ± 1.4 mg/L for SO
42−.
Finally, a recent study [
15] warns that contamination levels in the hydrosphere exceed the recommended values for human safety. It states that water is full of polyfluoroalkylates and perfluoroalkylates (PFAS), which are artificial chemicals that have been produced since 1948. PFAS are indestructible compounds that repel water, grease, and dirt and are used in various applications such as rainwear and frying pans. They are highly fluorinated and, upon decomposition, are extremely difficult to remove from the environment. The effects of PFAS on human health can be severe, resulting in weakened immune systems and even cancer. According to research, the PFAS cycle in the planet’s hydrosphere means that PFAS levels in rainwater will be practically irreversible.
This study [
14] recommends constantly monitoring rainwater in order to gather information on the influence of both natural and human sources of contamination on natural ecosystems. They suggest that the monitoring should cover a period of at least two years and involve analyzing a larger number of samples. Additionally, they emphasize the need to closely monitor the physicochemical composition of rainwater and fog water to establish links between rainwater and natural and human emissions. This will help to verify the impact of atmospheric pollutants on rainfall patterns and their effects on water supply for human consumption as well as on the flora and fauna of natural ecosystems.
Currently, it is possible to remotely monitor environmental conditions and record the data over time. Sensors designed for this purpose are widely available and can be adapted to measure different variables with varying levels of precision.
Recent studies have focused on developing low-cost devices using microcontrollers and sensors to monitor the physicochemical quality of water in real-time. These devices incorporate concepts such as Internet of Things (IoT) and Big Data, which are relevant to the current project. Several wireless water physicochemical sensor systems for real-time water quality monitoring have been designed and implemented in different parts of the world [
16] after being developed a low-cost sensor system in Parkville, Australia to analyze temperature, pH, electrical conductivity, dissolved oxygen, and oxygen-reduction potential. The collected information was sent to a computer, processed, and stored in a structured query language (SQL) database. The results showed that the monitoring system could be considered reliable with proper calibration.
Similarly, a study [
17] a sensor system was designed and developed in Pretoria, South Africa to measure physicochemical water quality parameters such as flow rate, temperature, pH, conductivity, and oxidation-reduction potential. All sensor data are wirelessly transmitted via a Wi-Fi network, processed, and analyzed in real-time. The system also notifies the user immediately and issues alerts when water quality parameters reach unsafe levels.
A low-cost water quality measurement device was developed in Amsterdam, Netherlands [
18] to operate in rural Africa. The device measures parameters such as electrical conductivity, dissolved oxygen, pH, temperature, and turbidity. These parameters are then sent to a server via the GPRS network, and an online interface is utilized to display the sent data.
Another monitoring kit for water quality parameters was developed in New Jersey [
19]. This kit uses low-cost sensors and an Arduino microcontroller to measure parameters such as temperature, total dissolved solids, pH, and turbidity. In addition, 3D printing was used to integrate the circuitry into a solid structure.
A study was conducted in Brunei [
20] to determine whether an Arduino-based sensor system could be used to monitor the water quality of a river. They used a simple prototype that included a microcontroller and multiple connected sensors for weekly on-site testing at different times throughout the day. However, the system was found to be reliant on human assistance and was prone to data inaccuracies.
Additionally, an automatic hydrological information system was developed in the city of Morelia, Michoacan, Mexico [
21]. This system consists of weather stations that use microcontrollers and low-cost sensors based on the Arduino platform to monitor meteorological variables in real time. The information collected by the stations is transmitted through the Wi-Fi network to the ThingSpeakserver, which allows users to visualize and download the data from a computer or a smartphone.
It has been observed that there is currently no device available in the market that can measure the quality of rainwater in real-time. Moreover, the professional equipment required to measure water quality parameters in the field is expensive and not affordable for most people. To address this issue, low-cost equipment was designed and developed that can measure basic parameters such as pH, total dissolved solids, turbidity, and temperature. The measurements are collected using an Arduino microcontroller manufactured by the company of the same name in Ivrea, Italy and a Wi-Fi ESP8266 communication module manufactured by Espressify Systems in Shangai, China. The collected data are then sent to a database and web platform, which allows for real-time visualization of the data in both spatial and temporal dimensions.
5. Conclusions
The developed monitoring system provides continuous and reliable remote measurements of rainwater quality at a significantly reduced cost, eliminating the need for expensive analytical equipment and on-site analysis.
Constant monitoring of rainwater quality can allow us to understand the physicochemical composition of rainwater and establish a correlation between rainwater and anthropogenic and natural emissions. It can also help us determine the impact of atmospheric pollutants on rainfall patterns.
Continuous monitoring of rainwater quality is essential for environmental authorities to provide real-time data, as well as protect and monitor pollution sources.
It is important to note that there may be measurement errors with low-cost devices due to various factors. However, these errors can be minimized through proper equipment maintenance and periodic sensor calibration.
Having a system with open-source hardware has the advantage of allowing the replacement of parts with other similar hardware without requiring contact with the product developers. Likewise, open-source software provides the flexibility to expand or reduce the monitored variables as needed.