Fine.
Or use eg a MAX6675 shield. What happens if you apply +10v to the input?
Or 20mA?
Or the +48 of a typical 4-20mA loop supply?
Or shunt it with the standard 250 ohm load when measuring 10V?
Or ( given you can do all this with relays etc) what happens if the programmer makes a mistake?
not easy.
bad idea
Allan