We analyze and optimize the performance of coupled plasmonic nanoantennas for refractive index sensing. The investigated structure supports a sub- and super-radiant mode that originates from the weak coupling of a dipolar and quadrupolar mode, resulting in a Fano-type spectral line shape. In our study, we vary the near-field coupling of the two modes and particularly examine the influence of the spectral detuning between them on the sensing performance. Surprisingly, the case of matched resonance frequencies does not provide the best sensor. Instead, we find that the right amount of coupling strength and spectral detuning allows for achieving the ideal combination of narrow line width and sufficient excitation strength of the subradiant mode, and therefore results in optimized sensor performance. Our findings are confirmed by experimental results and first-order perturbation theory. The latter is based on the resonant state expansion and provides direct access to resonance frequency shifts and line width changes as well as the excitation strength of the modes. Based on these parameters, we define a figure of merit that can be easily calculated for different sensing geometries and agrees well with the numerical and experimental results.