Two-phase fluids are widely utilized in some industries, such as petrochemical, oil, water, and so on. Each phase, liquid and gas, needs to be measured. The measuring of the void fraction is vital in many industries because there are many two-phase fluids with a wide variety of liquids. A number of methods exist for measuring the void fraction, and the most popular is capacitance-based sensors. Aside from being easy to use, the capacitance-based sensor does not need any separation or interruption to measure the void fraction. In addition, in the contemporary era, thanks to Artificial Neural Networks (ANN), measurement methods have become much more accurate. The same can be said for capacitance-based sensors. In this paper, a new metering system utilizing an 8-electrode sensor and a Multilayer Perceptron network (MLP) is presented to predict an air and water volume fractions in a homogeneous fluid. Some characteristics, such as temperature, pressure, etc., can have an impact on the results obtained from the aforementioned sensor. Thus, considering temperature changes, the proposed network predicts the void fraction independent of pressure variations. All simulations were performed using the COMSOL Multiphysics software for temperature changes from 275 to 370 degrees Kelvin. In addition, a range of 1 to 500 Bars, was considered for the pressure. The proposed network has inputs obtained from the mentioned software, along with the temperature. The only output belongs to the predicted void fraction, which has a low MAE equal to 0.38. Thus, based on the obtained result, it can be said that the proposed network precisely measures the amount of the void fraction.