INTRODUCTION

Liquid food analysis is the process of analyzing the composition and quality of liquid foods such as milk, fruit juices, and soups. This analysis can be conducted for a variety of purposes, including ensuring the safety and quality of the food, identifying any potential contaminants or adulterants, and determining the nutritional content of the food. Analyzing the physical, chemical, and biological properties of liquid foods can provide valuable information about the food's suitability for consumption and its shelf life. There are various techniques used in liquid food analysis, including spectroscopy, chromatography, and microscopy, which can be used to identify and quantify various components of the food. These techniques can be used to determine the presence of additives, preservatives, and other substances that may affect the quality and safety of the food. Optical and capacitive sensors are commonly used in liquid food analysis to measure various physical and chemical properties of the food. Optical sensors utilize light to measure properties such as color, clarity, and pH, while capacitive sensors use electrical capacitance to measure properties such as moisture content and density. Overall, the use of optical and capacitive sensors in liquid food analysis can provide valuable information about the quality and safety of the food, as well as its nutritional content and other properties.

1. BUILDING THE LIQUID FOOD ANALYZER ENVIRONMENT

1.1. Materials

The liquid food analysis process relies on a range of essential materials to ensure accurate and reliable results. The key components include various sensors and the ESP32 microcontroller. The sensors, such as optical, capacitive, temperature, and humidity sensors, are integral for capturing crucial data pertaining to the liquid food's color, clarity, moisture content, temperature, and humidity. These sensors provide the necessary inputs for a comprehensive assessment of the liquid food's quality and properties. Working in tandem with the sensors, the ESP32 microcontroller acts as the central processing unit, handling data acquisition, analysis, and communication with external devices. Additionally, 3D printed components are utilized to create a customized environment for the sensors and microcontroller. These 3D printed components ensure optimal positioning, alignment, and stability, minimizing external interference and maximizing the precision of the liquid food analysis. The combination of sensors, the ESP32 microcontroller, and 3D printed components forms the foundation for an accurate and efficient liquid food analysis system.

1.1.1. Optical Sensors

Optical sensors can be used to analyze the color and clarity of a liquid food to determine its quality and suitability for consumption. For example, a liquid food with a yellow or brown color may indicate the presence of contaminants or oxidation, while a clear liquid may indicate that it is fresh and free of impurities.

1.1.2. Capacitive Sensors

Capacitive sensors can be used to measure the moisture content of a liquid food, which is important for determining its shelf life and stability. Higher moisture content can lead to spoilage and degradation of the food, while lower moisture content may indicate that the food is stale or has been improperly stored. Capacitive sensors can also be used to measure the density of a liquid food, which can provide information about its nutritional content and other properties.

1.1.3. Temperature and Humidity Sensors

The ESP32 microcontroller plays a vital role in the liquid food analysis system, facilitating seamless integration of various sensors and enabling real-time data processing. By leveraging its versatile capabilities, the ESP32 ensures accurate data acquisition and efficient communication, contributing to comprehensive analysis of liquid food properties. Its compact design and powerful functionality make it an ideal choice for optimizing the liquid food analysis process.

1.1.4. ESP32 Microcontroller

The ESP32 microcontroller serves as a central component in the liquid food analyzer, providing essential functionalities for data processing, communication, and control. With its versatile capabilities, the ESP32 enables seamless integration and coordination of the various sensors used in the system. It facilitates real-time data acquisition from the optical, capacitive, temperature, and humidity sensors, allowing for comprehensive analysis of the liquid food properties. Moreover, the ESP32 enables the implementation of efficient algorithms and protocols for data handling and communication with external devices or platforms. Its processing power and connectivity options make it an ideal choice for developing a sophisticated liquid food analyzer, empowering accurate and efficient assessment of liquid food quality.

1.2. The Method

The liquid food analysis was carried out using a meticulous methodology to ensure reliable results. Initially, the optical, capacitive, temperature, and humidity sensors were precisely calibrated and seamlessly integrated into the system. The ESP32 microcontroller served as the central processing unit, facilitating real-time data processing and communication. To ensure optimal accuracy, a custom 3D printed environment was meticulously designed. This environment was specifically crafted to minimize the ingress of sunlight into the transparent cylindrical tube containing the liquid food. By creating a darkened environment, the 3D printed components effectively reduced potential interference from external light sources, thereby enhancing the accuracy of the analysis. The ESP32 microcontroller, programmed with Arduino, enabled efficient data acquisition and storage. Subsequently, a comprehensive Python script was developed to extract and analyze the stored data, generating informative graphs that provided detailed insights into the properties of the liquid food. This methodology, incorporating meticulous calibration, a purpose-built 3D printed environment, and advanced data analysis techniques, facilitated a systematic and accurate analysis of the liquid food, thereby contributing to informed quality assessment and ensuring the suitability of the food for consumption.

Ekran görüntüsü 2023-09-06 041205

Ekran görüntüsü 2023-09-06 041404

2. ANALYZING THE RECEIVED FOOD DATA

The received food data was subjected to a comprehensive analysis to gain insights into the quality and characteristics of the different milk samples. Initially, the data was collected using the integrated hardware system, with the Arduino platform used to save the data. However, in order to improve efficiency and enhance analysis capabilities, the data processing was later transitioned to Python, enabling faster and more sophisticated analysis. Once the data was saved, a range of analytical techniques and algorithms were applied to explore the properties of the milk samples. Statistical methods and algorithms were employed to identify patterns, correlations, and anomalies in the data. Additionally, graphical representations and visualizations were generated to present the findings in a more accessible and informative manner. These visual reports provided a clear overview of the variations in properties among the different milk samples, such as UHT, non-UHT, and spoiled milk. By utilizing the integrated hardware setup and conducting a systematic analysis, valuable insights into the quality and composition of the milk samples were obtained, contributing to the overall understanding of liquid food properties, and facilitating informed decision-making in food science research.

ir_UHT_2022-11-30 11 06 csv environment_UHT_2022-11-30 11 06 csv vis_UHT_2022-11-30 11 06 csv lux_UHT_2022-11-30 11 06 csv

arduino.mp4