Thank you all for the answers.
What I need is shown in this video :
In my case, the potentiometer is logarithmic.
Only what I need is instead of the voltage to regulate the digits, I need a potentiometer.
So, when there is an input from 35 to 50 ohms resistance, it shows a certain number for example 02.
So basically, I don't need the values to be linear. I need the values to be made by me manually - I tell which value corresponds to the resistance.
I hope I made myself clearer this time.
I forgot to mention that I'm a beginner at this, so I will need code if possible, I've only experimented a little with Arduino.
Thanks.