In this work, we have designed, optimized an integrated optic biosensor by analytical method and numerical simulations. The device consists of a racetrack resonator and a cantilever on silicon on insulator wafer. We proved its ability to distinguish tensile and compressive stress developed during conformation of protein molecules on the cantilever surface. By FDTD simulations, we observed that resonant wavelength shifts by +1.56 nm (red shift) with a compressive strain of -15000 με and -1.6 nm (blue shift) with a tensile strain of +15000 με.