In this study, microwave spectroscopy method has been used in liquid measurements and K nearest neighbors algorithm has been used for classifying liquids. For this aim, firstly an experimental setup consisting of a vector network analyzer, a patch antenna and a bottle have been built to measure the reflection parameter of each liquid used in classification experiments. The aim of this study is to examine both the parameters that may affect the measurements taken with the proposed system and the algorithm parameters that may affect the performance in the classification of liquids and the effects of these parameters. Measurements have been taken by leaving different distances between the antenna and the liquid in order to examine whether the distance of the liquids to the antenna affects the measurement result, and if so, what effect. For examining the parameters of K nearest neighbors algorithm that may affect the classification, the scattering parameters of different liquids measured using the patch antenna have been used as microwave dataset. In addition, the effect of container type has been analyzed. Performance tests have been conducted by weighting and without weighting the algorithm, by measuring the accuracy rate when different numbers of nearest neighbors and different distance metrics have been used. The results reveal that the classification made by applying weighting is more successful than the classification made without weighting regardless of the number of nearest neighbors and used distance metrics.