Tracking gas usage with ESPHome, Home Assistant, and TCRT5000

from blog Simply Explained, | ↗ original
In 2019, I built an energy monitor to keep track of our electricity consumption. Then, in 2021, Home Assistant added an Energy Management feature that keeps track of electricity and gas usage. So naturally, I had to make my gas meter smart as well.