CO2 sensors are very important; however, their performance is limited by stability and selectivity. This study unveils a capacitive CO2 sensor with a dielectric layer comprised of amine-functionalized cellulose nanofibril (CNF) foam, significantly enhanced by the addition of 1,8-diazabicyclo[5.4.0]undec-7-ene (DBU). The core innovation of this research lies in the strategic use of CNF-based foam, which leads to a substantial increase in sensor capacitance, setting a new standard in CO2 monitoring technologies. The sensor showcases exceptional performance under ambient conditions, with marked improvements in sensitivity towards CO2. The advancements are attributed to the chemisorption properties of the aminated CNFs combined with the DBU enhancement, facilitating more effective CO2 capture. By integrating these materials, we present a sensor that opens new avenues for environmental monitoring, healthcare diagnostics, and industrial safety, establishing a new benchmark for capacitive CO2 sensors in efficiency and environmental sustainability.