Configuring Analog Output - help requested

Hi, as well home automation another hobby is collecting vintage equipment, I have an old paper chart recorder and for fun I want to feed some temperature and humidity values from HA to it. I can’t code but I can sometimes hack YAML :slight_smile:
I have found the ESP32 DAC page and can see

        id: dac_output
        level: 50%

But I have no idea how to get the output to go from 0 - 100% from a temperature sensor in HA. I haven’t been able to find any specific examples with Google. Does anyone have an exampe or can explain how to go about it?