Analog input like in a PLC: Thermistor or 0-10V
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. A very basic setup.


Leave the switches open for 0 - 10 V.
Close the lower switch to convert 20 mA to 10 V. (Check the power dissipated in the resistor.)
Open the bottom switch and close the top switch to provide a current to the temperature sensor which should be connected between IN and GND.


Using PCB headers / jumpers is a standard way of providing this functionality.