A biochip is made from a two-dimensional photonic crystal waveguide and a rhombus shape that acts as a resonator. This biochip is a sensor that can detect different concentrations of glucose with amounts of 10, 20 and 60% in water. Here, we studied and simulated the concentrations of glucose, which have a refractive index n of 1.3477, 1.3635 and 1.4394, respectively. To identify these quantities, we have proposed a square lattice structure formed by silicon rods with a n = 3.46. With the help of these dielectric rods immersed in the air, it was possible to analyze the detection characteristics. Our results are examined according to COMSOL software by using the PWE method and the finite element method in order to have the PBG and which helped us to create the structure and extract the propagation at resonance, the field norm, the total energy density (TED), the power flow norm (PFN), the transmission and the sensitivity. The concentrations of glucose in water answered yes to the variations for each of the E-field, the TED, the PFN and the sensitivity. These variations are due to the radius r and refractive index n of each concentration used. This structure can help with diabetes self-monitoring.