Using an analytically solvable model, we show that a qubit array-based detector allows to achieve the fundamental Heisenberg limit in detecting single photons. In case of superconducting qubits, this opens new opportunities for quantum sensing and communications in the important microwave range.