You can use a photoelectric FET as a variable resistor or a potentiometer in combination with a fixed resistor. The H11F3M photoelectric FET has an isolation voltage of 7.5 kV, enabling you to safely ...