Use a PIC.
They can read in 0 - 5 V on the ADC, and you can output 0 - 5 V using either PWM output or an external DAC.
With a PIC you need a programmer and you need to learn to program it.
You can design it analogue, with op-amps and diodes etc and it will use just about the same number of components.
Then when you change your mind as to how it should work, with the analogue design, you start again, or bodge in extra components and it looks a mess.
With the PIC you write a few more lines of code and upload it.