Measuring CO₂ using an ESP32 and the Adafruit SCD-41 CO₂ Sensor

Introduction Last year, I bought the Birdie CO₂ monitor 1 to measure my CO₂ values at home. This air quality meter resembles a canary bird, referencing the days where canaries were used in coal mines to detect deadly carbon monoxide. When these stopped singing (or even collapsed 😥), this was a sign that the air quality was poor, and the workers needed to leave the mines 2 . This is how the Birdie…