Whispering gallery mode (WGM) resonator is sensitive to the external medium change due to its strong light-matter interaction. However, the temperature sensitivity of silica-based WGM resonators would cause crosstalk, which is a fatal shortcoming for those high-quality (Q) resonators. In this paper, a hybrid microcavity including WGM resonance and Fabry–Pérot (FP) interference is proposed for simultaneous measurement of NaCl concentration and temperature, using the same microcavity in the same system to obtain two types of optical signals. The experimental results indicate that the maximum measurement error of NaCl concentration and temperature without compensation is about ± 0.026 % and ± 1.1 °C, while they would be ± 0.012 % and ± 0.3 °C after compensation. Sharing one microcavity enables temperature compensation to achieve temperature synchronization, and sharing of one system ensures the simplicity and stability of the sensing platform.