As we send the board for the user to install in a electrical panel of one of his machines, I don't have any control of the type of potentiometer. The safety concerns are in the board, not in periphericals.
The machine is sold to final users, which will eventually have to change components and have to work in the board. The potentiometer and digital inputs are conected via terminal blocks. The idea is: the final user has no risk of electrical shock.
The problem is not in the potentiometer itself. The board is open in the electrical panel and eventually the final user has access. I want to make sure in the user interface area (inputs) he has no risk of electrical shock. (There is reports of other similars boards doing that).
You've not said whether it needs to output an analogue voltage or if digital will do?
And how many channels are required?
If digital is okay, then as I've said, along with many others, use a microcontroller with an ADC and transmit the signal via an opto-coupler or digital isolator.
If you need analogue, then the HCNR200 you mentioned at the start of the thread will do. There's also the AMC1350.
https://www.ti.com/lit/ds/symlink/amc1350.pdfPWM can also be converted back to analogue with a low pass filter. The circuit I posted is better if you know the value of the potentiometer, but will work with other values, just with a different output frequency. There are other ways to generate PWM, which output a constant frequency, irrespective of the potentiometer value, or you could just use a microcontroller to generate the PWM.from a potentiometer connected to an ADC input. The PWM can be a low frequency, tens to hundreds of Hz and the low pass filter can have a cut-off of a couple of Hz.