In this study, a two-port network-based microwave sensor for liquid characterization is presented. The suggested sensor is built as a miniature microwave resonator using the third iteration of Hilbert's fractal architecture. The suggested structure is used with the T-resonator to raise the sensor quality factor. The suggested sensor is printed on a FR4 substrate and has a footprint of 40×60×1.6mm3. Analytically, a theoretical investigation is made to clarify how the suggested sensor might function. The suggested sensor is created and put to the test in an experiment. Later, two pans to contain the urine Sample Under Test (SUT) are printed on the sensor. Before loading the SUT, it is discovered that the suggested structure's frequency resonance is 0.46 GHz. An 18 MHz frequency shift is added to the initial resonance after the pans are printed. They monitor the S-parameters in terms of S12 regarding the change in water content in the urine samples, allowing for the sensing component to be completed. As a result, 10 different samples with varying urine percentages are added to the suggested sensor to evaluate its ability to detect the presence of urine. Finally, it is discovered that the suggested process' measurements and corresponding simulated outcomes agreed quite well.