Quantum sensing theory and fundamental backgrounds