<crude_solution>
How about using a lamp dimmer, replacing the pot with a CDS photocell, and
illuminating that with a light bulb or LED? You should be able to get all
that at Radio Shack or your local equivalent.
It'll be nonlinear, but I imagine you have a PIC in there somewhere that
will linarize it.
</crude_solution>