I'm not getting my analog voltage comparator act together.

I want the teacher, at race time, to certify that each car will respond correctly to the bright lights at the beginning and end of the maze.
The photoresister R/C to PIC toggling threshold should be calibrated per car.

The PICkit2 comes with a built in pot attached to pin RA0. Each car while being exposed to the bright light could have its pot turned with a long handled screw driver (avoiding shadows) to the point that the car's control toggles.

This translates to a voltage comparison between the input of RA0 and RA1. The photoresister 10807 reduces its resistance in bright light from 5k down to near 500 ohms If I build a voltage divider with a 5k resistor to Vss = 5V and the 10807 to Gnd and attach it to RA1 will that do the trick? It would give the PIC a swing of about 2V not figuring the input impedance of the PIC.

I've got a some of questions.

First, does the above make sense?
Second, do any of you know some PBP code that does a similar comparison?
Three, I believe I will need to smooth out noise during the transition as the car comes into and leaves the bright light? How would you suggest I do that?

Ken