Uno R3 Variable voltage switch

Well an arduino can read a analog voltage in the range of 0-5vdc via it's analog input pins. And a digital output pin plus a transistor can be used to switch a relay on and off. And your sketch software coding can decide at what analog input voltage value to switch the relay on or off, so it would appear to be a simple project for an arduino board?

Lefty