I am designing a pic based project to intercept the dc voltage produced by an automotive sensor and re-produce the voltage seen by the car's systems but controlled.

The sensor produces a voltage between 0 and 10v but if the value is between 6 and 7v the car must see only 6v.

I envisage a pic with a/d sensing the input voltage via a voltage divider to bring it down to 0 to 5v. The pic then decides what to do and outputs the voltage again using a dac.

The problem is how to get the voltage back up to level without adding component cost.

I thought of using an op-amp to double the output voltage but is there a better way? Do any pic's operate at vdd=12v?

Thanks all.