Design and Optimization of a Low-Power RISC-V Processor for NDIR Measurement of CO2 Levels