Shift of resonance frequency in microsphere optical resonator due to attachment of a desirable particle is obtained. Our 3-D finite element numerical method (FEM) simulations’ results show the path of light through microsphere and its variation due to attachment of particle. It is apparent that after attachment of particle to microsphere's surface, light is inclined to pass through the particle. Subsequently, the path of light becomes longer than previous. Because of this phenomenon, the resonance wavelength shifts to longer wavelengths. It is shown that microsphere optical resonator is a prominent biosensor for single virus detection since we applied characteristics of virus for particle in our simulations. Response of this biosensor depends on the characteristics of particle like its radius as we show in this article. Transmission spectrum of fiber which reveals a selected resonance frequency, have been studied in the frequency range of 106.3 to 107THz under three different sizes of particles. The results show that the amount of frequency shift rises by enhancement of particle's size.