A comprehensive model for designing robust all-in-fiber microresonator-based optical sensing setups is illustrated. The investigated all-in-fiber setups allow light to selectively excite high-Q whispering gallery modes (WGMs) into optical microresonators, thanks to a pair of identical long period gratings (LPGs) written in the same optical fiber. Microspheres and microbubbles are used as microresonators and evanescently side-coupled to a thick fiber taper, with a waist diameter of about 18 µm, in-between the two LPGs. The model is validated by comparing the simulated results with the experimental data. A good agreement between the simulated and experimental results is obtained. As an application example, the sensing of the concentration of an aqueous glycerol solution is demonstrated. The model is general and by exploiting the refractive index and/or absorption characteristics at suitable wavelengths, the sensing of other substances or pollutants can be also predicted.