In this paper, defective microwave photonic crystals (MPCs) are designed to sense the salinity of aqueous solutions. The defective MPC sensors are constructed by two kinds of microwave dielectric layers and one defective salt solution layer. Transfer matrix method (TMM) for lossy medium is developed to calculate the transmittance spectra of the sensors. It is found that the peak transmittance of both the defective resonance within the microwave band gap (MBG) and transmitting modes outside the MBG monotonously decrease with the increase of salinity, while the resonant and transmitting mode frequencies remain unchanged. By comparing the four MPC sensor structures, the first transmitting mode in the upper frequency band outside the MBG of the 15-layer MPC sensor has the largest salinity sensing range from 0 to 40‰ with relative stable detecting sensitivity. The sensing principle is based on the fact that the dielectric loss factor of saline solution is much more sensitive to salinity than the dielectric constant in the microwave frequency band. The sensitivity, quality factor, and salinity detection range of the MPC sensors are calculated and compared. The reported defective MPC sensors are suitable to be used for non-contact salinity detection.