International Journal of Engineering Insights: (2023) Vol. 1, Nro.1, Regular Paper
https://doi.org/10.61961/injei.v1i1.5
Acidity analysis in different blackberry dilutions using IoT
Eduardo Teneda · Lorena aceres
Received: 5 July 2023 / Accepted: 3 October 2023
Abstract: The internet of things has expanded to all
areas, including the food field, seeking to guarantee
food and analyze its characteristics remotely. In this
work, an electronic system is developed that allows real-
time measurements and analysis of pH and temperature
and controls a mixer from a mobile application. The
electronic design consists of a servomotor (Mixer) and a
pH and temperature sensor (pH 4502C) connected to an
ESP32 board. In the experiments, the blackberry fruit
pulp was used in beakers with dilutions of 25%, 50%,
and 100%. The sensor probe was immersed in these
samples. In the results, the experiment was performed
four times so that the data were reliable; the measure-
ment was carried out first by measuring the pH in the
water for four minutes, then the sensor probe was trans-
ferred to the beaker containing the dilutions for four
minutes. The pH and temperature data recorded are
sent through WiFi to Thingspeak and are monitored in
a mobile application designed in AppInventor, then ex-
ported the data to make decisions regarding the behav-
ior of the pH, which allows identifying if the blackberry
has the necessary conditions for humans’ consumption.
Keywords pH sensor · Blackberry · ESP32 ·
IoT.acidity
1 Introduction
1.1 Motivation
The blackberry (Rubus glaucus) is a fruit native to
tropical South America, cultivated mainly in Colombia
and Ecuador [1]. It is rich in components such as antho-
cyanins and ellagitannins [2]. It is cultivated by farm-
ers in the Andes region and contributes significantly
to the generation of economic resources at the level of
small and medium producers [3]. It has nutritional and
Eduardo Teneda · Lorena aceres
Universidad Indoam´erica
Ambato, Ecuador
lorenacaceres@uti.edu.ec
antioxidant properties appreciated by all types of con-
sumers for its pleasant color and flavor, as well as for
its health benefits [4]. Inadequate handling, transport
and packaging affect the morphological characteristics
of the fruit [5,6], decreasing the content of bioactive
compounds [7].
It is non-climacteric fruit rich in minerals and vita-
mins that requires care during harvest and post-harvest
[8]. Its high moisture content (91%) makes it vulnera-
ble to fungal attack and its shelf life is relatively short,
ranging from 3 to 5 days, after which losses are close
to 70% [9]. Blackberry has a fragile structure [10] and
its quality decreases rapidly during the post-harvest
period, which reduces its consumption in nature [11].
The pH allows predicting the quality of the food, using
a colorimetric scale [12]. IoT allows the interaction of
machines and their control without human interaction
[13,14,15]. Through IoT, farmers can monitor factors
such as humidity, health, temperature using sensors and
without the need to go to the field which makes the
agricultural industry more efficient [16].
1.2 Related works
In the study conducted in [17], wireless transmission
technology is used with various sensors to measure tem-
perature, pH, dissolved oxygen, water level in the fish
farm. The integrated data are transmitted to mobile
devices via the Internet of Things, allowing managers
to monitor water quality. A robotic arm with a pro-
grammable logic controller, a chip combined with a
wireless transmission module and an embedded system
was developed to perform the measurements. The de-
signed intelligent measuring equipment works around
the clock, which effectively reduces data losses caused
by personnel, material resources and measurement er-
rors.
In reviewing the literature, we found a work whose
objective is to implement the Internet of Things as an
information system to measure and monitor moisture,
pH, and NPK levels in mustard leaf crops with capillary
15 International Journal of Engineering Insights, (2023) 1:1
irrigation and liquid organic fertilizer. For this purpose,
a completely randomized design was used with two fac-
tors: the type of liquid organic fertilizer and the number
of capillary irrigation wicks.
The results showed that soil moisture during mus-
tard leaf growth ranged from 16.59% to 23.48%, the
higher the capillary wick, the higher the soil moisture,
the average water requirement for mustard plant growth
was 3.16 liters. The application of liquid organic fertil-
izer has a significant effect on soil pH and NPK levels
in the soil. Capillary irrigation had a significant effect
on soil pH, but had no significant effect on soil NPK
levels [18].
2 Design and Materials
To develop this proposal, a system on chip board is
used in which the programming for the operation of a
pH and temperature sensor is installed, a servo motor is
included to generate movement in the blackberry fruit
pulp that is in a 500 ml beaker where the pH probe is
immersed. The recorded pH and temperature data are
sent over the internet via an IoT platform and read into
a mobile application that employs a cloud database.
(Fig. 1 ) shows the elements used in the process.
2.1 System requirements
The requirements for the system to measure the vari-
ables and process the required information are as fol-
lows: A 500 ml beaker in which there is 350 ml of black-
berry fruit pulp. The pH-temperature sensor will mea-
sure the pH [H+] and temperature [ C] by introducing
the probe into the pulp. A servo motor is used to mix
the pulp throughout the process. Wi-Fi connectivity is
required to process the information through the Sys-
tem on chip board and to be linked through the IoT
platform so that the information can be read through
a mobile application. The system requirements can be
seen in Table 1.
2.2 Circuit and Program
The project design is based on an ESP32 board to which
the pH sensor and servo motor are connected. The To
input is connected to pin 32, Po is connected to pin 33,
G is connected to GND and uses a 3V3 power supply.
Regarding the servo motor the GND input is connected
to pin GND, the input for operation to pin 4 uses a 5V
supply. The system design is shown in (Fig. 2).
Table 1 System Requirements
Device Requirement Description Required
pH sensor
pH 0-14 value sensing
sensor module plus
BNC pH electrode
probe for value sens-
ing sensor
pH 4502C
Temperature Sensor
Temperature range:
32.0-176.0 [ F], 0 - 80
[ C].
pH 4502C
Servo Motor
Operating speed (no
load): 0.09 0.01
sec/60 (4.8 V) 0.08
0.01 sec/60 (6 V).
Operating angle: 180
degrees
Micro Servo 9g SG90
System on chip
System with Wifi con-
nection, analog in-
puts, I2C communica-
tion.
ESP-WROOM-32 for
Arduino.
IoT plataform
Store, graph and pro-
cess data in the cloud.
Thingspeak
App
For smartphone,
portable, user menu
and Android operat-
ing system.
Appinventor
Precitation Glass
1.7 fl. oz. thick low
form borosilicate
glass.
Precipitation beaker
with 500 ml capacity.
Fig. 1 IoT design for pH monitoring
For the programming of the pH and temperature
sensor, Arduino is used, where three libraries are in-
cluded: ESP32Servo.h, Thingspeak.h and WiFi.h, the
pH input is connected to pin 33, the temperature input
to pin 35, and the servomotor is connected to pin 4 (see
Fig. 3).
3 Connectivity and Interface
3.1 Communication
The communication is done through the ESP32 board
which has WiFi connection, the data of the measure-
ments are processed through Thingspeak where these
16 International Journal of Engineering Insights, (2023) 1:1
Fig. 2 Circuit Design
Fig. 3 Arduino Programming Code
Fig. 4 System Communication
are stored and analyzed, then the data can be observed
through the application made to in the Appinventor ap-
plication. (Fig. 4) represents the communication of the
system.
3.2 User interface
Through the Appinventor application, the user inter-
face is designed where a button for the mixing process
is shown, a section where the pH data graph is shown,
the section corresponding to the Temperature graph,
and a section corresponding to the pH graph. (Fig. 5)
shows the user interface created for the project.
4 Analysis of Results
To analyze the results, the installation of the system
was performed as shown in Fig. 6.
Fig. 5 User interface
Fig. 6 System Installation
Fig. 7 Design of Experiment
The experiment was designed using four beakers; in
the first one we placed water (400 ml), in the other
three beakers we placed 100 ml of water and added
(25%, 50%, 100%) of blackberry pulp, respectively) as
shown in Fig. 7. To verify the functionality of the ap-
plication, tests were performed in which a user used the
application to take measurements as shown in (Fig. 8).
4.1 Data collected
The data collected by the designed application were
pH [H+] and Temperature [ C] measured in blackberry
pulp at different concentrations. (Fig. 9) shows the data
recorded by the application for pH and temperature.
17 International Journal of Engineering Insights, (2023) 1:1
Fig. 8 Use of the Application
Fig. 9 Measurement of pH [H+] and Temperature [ C]
4.2 Analysis of the experiments
The data obtained were plotted through Excel, the ex-
periment was performed four times so that there is
greater reliability in the data, these were measured for
four hours in total, the measurement was carried out
first by measuring the pH in water for four minutes,
then the sensor probe was transferred to the glass con-
taining the 25% solution for four minutes, the pH probe
is returned to water for another four minutes, this pro-
cedure is performed with the 50% and 100% solutions.
(Fig. 10) shows the graphs obtained from the four ex-
periments.
Table 2 shows the pH variations in the four experi-
ments carried out; the pH variation in experiment 1 is
2.48% between the 25% to 50% dilutions and 0.66% in
the 50% to 100% dilution. In experiment 2 is 1.87% be-
tween the 25% to 50% dilutions and 0.97% in the 50%
to 100% dilution. In experiment 3, the variation in the
25% to 50% dilutions is 1.27%, and the variation in the
50% to 100% dilutions is 1.63%. Finally, in experiment
4, the variation between the 25% to 50% dilutions is
1.27%, and the variation in the 50% to 100% dilution is
1.62%, which allows determining that the sensor works
correctly due to high repeatability even though different
reference levels. For example, in experiment 4, the wa-
ter was mixed with blackberry pulp due to the changes
made from the sensor probe to the different beaker.
Table 2 Data Analysis
Concentration [%] pH Mean [H+] Variation [H+]
Experiment 1 25 3.22 0.08
50 3.05 0.02
100 3.02
Experiment 2 25 3.21 0.06
50 3.08 0.03
100 3.02
Experiment 3 25 3.15 0.04
50 3.06 0.05
100 2.96
Experiment 4 25 3.15 0.04
50 3.08 0.05
100 2.99
5 Conclusions
The system assembled for this experiment has two func-
tions that allow on the one hand to monitor the pH
and temperature, and on the other to control the mixer
of the environment where the system is installed. The
measurements can be observed in real time through the
application designed in App Inventor, the data were
stored in the Thingspeak platform and then exported
to Excel to make graphs and make decisions regard-
ing the behavior of the pH, which allows to know if
the blackberry pulp has the necessary conditions to be
consumed. In addition, it allowed to analyze the acid-
ity level of the blackberry with different concentration
levels. As future work, it is recommended that differ-
ent environments be used to monitor pH behavior, and
to determine which is the most suitable for preserving
blackberry pulp over time.
Acknowledgements Special thanks to CICHE Research Cen-
ter and SISAu Research Group of the Universidad Indoam´erica
for the support in this research. The results of this work are
part of the project “Education 4.0 applied to the teaching of
skills STEAM”. This work was supported in part by collabo-
ration with the REDTPI4.0 CYTED program.
Conflict of interest
The authors declare that they have no conflict of inter-
est.
18 International Journal of Engineering Insights, (2023) 1:1
Fig. 10 pH data of the different blackberry dilutions by experiment
References
1. M. Cort´es Rodr´ıguez, C. Villegas Y´epez, J. H. Gil
Gonz´alez, and R. Ortega-Toro, “Effect of a multifunc-
tional edible coating based on cassava starch on the
shelf life of andean blackberry,” Heliyon, vol. 6, no. 5,
p. e03974, 2020.
2. Z. T. Mar´ın Arango, M. Cort´es Rodr´ıguez, O. I. Mon-
toya Campuzano, and J. C. Arango Tob´on, “Viability
of Lactobacillus casei ATCC 393 and properties in An-
dean blackberry suspensions with probiotic and prebiotic
characteristics,” DYNA: revista de la Facultad de Mi-
nas. Universidad Nacional de Colombia. Sede Medell´ın,
ISSN 0012-7353, Vol. 86, N . 210, 2019, ags. 179-186,
vol. 86, no. 210, pp. 179–186, 2019.
3. A. J. Vance, P. Jones, and B. C. Strik, “Foliar Calcium
Applications Do Not Improve Quality or Shelf Life of
Strawberry, Raspberry, Blackberry, or Blueberry Fruit,”
HortScience, vol. 52, no. 3, pp. 382–387, 3 2017.
4. S. S. Santos, L. M. Rodrigues, S. C. Costa, and
G. S. Madrona, “Antioxidant compounds from black-
berry (Rubus fruticosus) pomace: Microencapsulation by
spray-dryer and pH stability evaluation,” Food Packaging
and Shelf Life, vol. 20, p. 100177, 6 2019.
5. J. Geeson, “MODIFIED ATMOSPHERE PACKAGING
OF FRUITS AND VEGETABLES,” Acta Horticulturae,
no. 258, pp. 143–150, 12 1989.
6. A. Ascencio-Arteaga, S. Luna-Su´arez, J. G. ardenas-
Valdovinos, E. Oregel-Zamudio, G. Oyoque-Salcedo,
J. A. Ceja-D´ıaz, M. V. Angoa-P´erez, and H. G.
Mena-Violante, “Shelf Life of Blackberry Fruits (Rubus
fruticosus) with Edible Coatings Based on Candelilla
Wax and Guar Gum,” Horticulturae 2022, Vol. 8,
Page 574, vol. 8, no. 7, p. 574, 6 2022. [Online].
Available: https://www.mdpi.com/2311-7524/8/7/574/
htmhttps://www.mdpi.com/2311-7524/8/7/574
7. J. A. Toscano
´
Avila, D. A. Ter´an, A. Debut, K. Vizuete,
J. Mart´ınez, and L. A. Cerda-Mej´ıa, “Shelf life estima-
tion of Blackberry (Rubus glaucus Benth) with bacterial
cellulose film coating from Komagataeibacter xylinus,”
Food Science & Nutrition, vol. 8, no. 4, pp. 2173–2179,
4 2020. [Online]. Available: https://onlinelibrary.
wiley.com/doi/full/10.1002/fsn3.1525https://
onlinelibrary.wiley.com/doi/abs/10.1002/fsn3.1525https:
//onlinelibrary.wiley.com/doi/10.1002/fsn3.1525
8. C. Moreno, M. J. Cuvi, and A. Concell´on, “Efecto del uso
combinado de la radiaci
´
On uv-c y atm
´
Osfera modificada
sobre el tiempo de vida
´
Util de uvilla (physalis peruviana
l.) org
´
Anica,” Tsafiqui, p. 43, 12 2012.
9. C. Villegas and W. Albarracin, “Edible coating applica-
tion and effect on blackberry (rubus glaucus benth) shelf
life,” Vitae, vol. 23, pp. 202–209, 09 2016.
10. M. Hadadinejad, K. Ghasemi, and A. Mohammadi, “Ef-
fect of storage temperature and packaging material on
shelf life of thornless blackberry,” pp. 265–275, 12 2018.
11. T. Carvalho, E. Silva, M. Almeida, and R. Ayub, “Black-
berry extend shelf life by nanocellulose and vegetable oil
coating,” Horticulture International Journal, vol. 4, 05
2020.
12. C. S. Cuesta-Ria˜no, M. P. Castro-Guascaa, and
M. P. Tarazona-D´ıaz, “Anthocyanin extract from
blackberry used as an indicator of hydrogen potential,”
International Journal of Fruit Science, vol. 22, no. 1,
pp. 224–234, 2022. [Online]. Available: https://doi.org/
10.1080/15538362.2022.2037036
13. P. Thakur and M. Malhotra, “Role of iot in automated
hydroponic system: A review,” in Emerging Technolo-
gies in Data Mining and Information Security, P. Dutta,
S. Chakrabarti, A. Bhattacharya, S. Dutta, and V. Piuri,
Eds. Singapore: Springer Nature Singapore, 2023, pp.
349–357.
14. J. Varela-Ald´as, M. Miranda, J. Le´on, and C. Gallardo,
“Analysis of electrical energy consumption in the home
using iot,” in HCI International 2022 Late Breaking
Posters, C. Stephanidis, M. Antona, S. Ntoa, and G. Sal-
19 International Journal of Engineering Insights, (2023) 1:1
vendy, Eds. Cham: Springer Nature Switzerland, 2022,
pp. 561–567.
15. J. Varela-Ald´as, J. Buele, S. Guerrero-N´nez, and V. H.
Andaluz, “Mobile manipulator for hospital care using
firebase,” in HCI International 2022 - Late Breaking
Papers. Multimodality in Advanced Interaction Environ-
ments, M. Kurosu, S. Yamamoto, H. Mori, D. D. Schmor-
row, C. M. Fidopiastis, N. A. Streitz, and S. Konomi, Eds.
Cham: Springer Nature Switzerland, 2022, pp. 328–341.
16. J. Varela-Ald´as, J. Buele, H. Mosquera, and G. Palacios-
Navarro, “Development of a wbgt index meter based on
m5stack core2,” in HCI International 2022 – Late Break-
ing Papers: Ergonomics and Product Design, V. G. Duffy
and P.-L. P. Rau, Eds. Cham: Springer Nature Switzer-
land, 2022, pp. 359–372.
17. C.-H. Chen, Y.-C. Wu, J.-X. Zhang, and Y.-H. Chen,
“Iot-based fish farm water quality monitoring system,”
Sensors, vol. 22, no. 17, 2022. [Online]. Available:
https://www.mdpi.com/1424-8220/22/17/6700
18. N. Charibaldi, D. Saidi, and F. R. Kodong, “Precision
agriculture using internet of thingsin regosol soil,” IOP
Conference Series: Earth and Environmental Science,
vol. 1018, no. 1, p. 012006, apr 2022. [Online]. Available:
https://dx.doi.org/10.1088/1755-1315/1018/1/012006
License
Copyright (2023) Eduardo Teneda and Lorena aceres.
This text is protected under an international Cre-
ative Commons 4.0 license.
You are free to share, copy, and redistribute the ma-
terial in any medium or format — and adapt the docu-
ment — remix, transform, and build upon the material
for any purpose, even commercially, provided you
comply with the conditions of Attribution. You must
give appropriate credit to the original work, provide a
link to the license, and indicate if changes were made.
You may do so in any reasonable manner, but not in
a way that suggests endorsement by the licensor or ap-
proval of your use of the work.
License summary - Full text of the license