A circuit to convert some resistance values to others
Other solution: use a digitally controlled potentiometer. This is a lot easier than the FET solution in my other answer, but you have very limited current.

Again, measure the sensing resistor with a voltage divider and a microcontroller's ADC. Calculate the resistance from the voltage and set the digital potentiometer's resistance accordingly.