Exotic quantum states can be advantageous for sensing, but are very fragile, so that some form of quantum error correction is needed. Here, the authors show how approximate QEC helps overcoming decoherence due to noise when measuring the excitation population of a receiver mode in a superconducting circuit.