Measuring the void fraction of different multiphase flows in various fields such as gas, oil, chemical, and petrochemical industries is very important. Various methods exist for this purpose. Among these methods, the capacitive sensor has been widely used. The thing that affects the performance of capacitance sensors is fluid properties. For instance, density, pressure, and temperature can cause vast errors in the measurement of the void fraction. A routine calibration, which is very grueling, is one approach to tackling this issue. In the present investigation, an artificial neural network (ANN) was modeled to measure the gas percentage of a two-phase flow regardless of the liquid phase type and changes, without having to recalibrate. For this goal, a new combined capacitance-based sensor was designed. This combined sensor was simulated with COMSOL Multiphysics software. Five different liquids were simulated: oil, gasoil, gasoline, crude oil, and water. To estimate the gas percentage of a homogeneous two-phase fluid with a distinct type of liquid, data obtained from COMSOL Multiphysics were used as input to train a multilayer perceptron network (MLP). The proposed neural network was modeled in MATLAB software. Using the new and accurate metering system, the proposed MLP model could predict the void fraction with a mean absolute error (MAE) of 4.919