Text this: Compact and full-range carbon dioxide sensor using photoacoustic and resonance dependent modes