Recently, non-Hermitian Hamiltonians have gained a lot of interest, especially in optics and electronics. In particular, the existence of real eigenvalues of non-Hermitian systems has opened a wide set of possibilities, especially, but not only, for sensing applications, exploiting the physics of exceptional points. In particular, the square root dependence of the eigenvalue splitting on different design parameters, exhibited by 2 × 2 non-Hermitian Hamiltonian matrices at the exceptional point, paved the way to the integration of high-performance sensors. The square root dependence of the eigenfrequencies on the design parameters is the reason for a theoretically infinite sensitivity in the proximity of the exceptional point. Recently, higher-order exceptional points have demonstrated the possibility of achieving the nth root dependence of the eigenfrequency splitting on perturbations. However, the exceptional sensitivity to external parameters is, at the same time, the major drawback of non-Hermitian configurations, leading to the high influence of noise. In this review, the basic principles of PT-symmetric and anti-PT-symmetric Hamiltonians will be shown, both in photonics and in electronics. The influence of noise on non-Hermitian configurations will be investigated and the newest solutions to overcome these problems will be illustrated. Finally, an overview of the newest outstanding results in sensing applications of non-Hermitian photonics and electronics will be provided.