ESPHome configuration for PWM to 0..10V output, sensor and control

You may also look at this Hardware from kincony - KC8568-A4 (ESP32 Board with 2x 0-10V Outputs and several other stuff)

I used this in my project and it worked with the ESP32 DAC - I get between DC 0V and 9.52V
https://www.kincony.com/forum/showthread.php?tid=1093