The unique properties of light underlie the perspectives of quantum photonic technologies, optical interconnects, and a wide range of new sensors.Some of the most dangerous and deadly diseases are tumors, cancers, and brain lesions, which are expensive to detect and treat. Therefore, a low-cost and accurate method to diagnose them can prevent and treat the progress of this disease. In this work, we used the precise topological valley photonic crystal (TVPC) method for detection. TVPC is an important method for transmitting and controlling light in the optical device. The valley-spin locking in the topology state provides robust transfer and low propagation loss at the desired path.In order to design, by finding the edge band within the first bulk band gap of 146.4THz-155.9THz, the model and design of the topological ring resonator (TRS)were realized. We proposed a topological biosensorbyusing the hexagonal lattice air holes in the silicon slab with a compact size of 22.95µm×10µm. the quality factor and sensitivity at best value are2.905×104and9021nm/RIU respectively. This design can be implemented on the Complementary Metal-Oxide-Semiconductor (CMOS) technology as a high-sensitivity optical device.