ESPHome + Pulscounter with IN-Z61 (Gascounter)

Thank you for your answer. i had installed esphome via settings > esphome. it is up and running and i was able to flash my esp32 with the yaml-code i posted.

My Question was how i could install this for my sensor?