I built one based on the AirGradient DIY sensor [1]. It is open source, and you can order PCBs or build them yourself. It is also compatible with ESPHome.
It uses the "Senseair S8" CO2 sensor, which costs a bit (25-30$), but (according to AirGradient) has a very high quality.
[1]: https://www.airgradient.com/open-airgradient/instructions/di...