DFRobot Oxygen Sensor SEN0322

I’m trying to get the SEN0322 working with ESP Home.

It’s currently connected to an ESP8266 and works well through the Arduino IDE, using the:

When trying to create the .yaml for this component I just get hit with preparation errors.
I’m not looking for any debugging, I have several different versions of code and each have their own issue. What I’m asking is, has anyone every got this working and how did they get it working through ESP Home?

There is a youtube vid showing someone “apparently” getting it working through Arduino IDE, but you don’t see it working, just them typing.
yt- v=u6Mp43mA7BI&t=386s