Thank you all very much for the information and help! I think now that we understand the basic concept of what needs to be done, I can work with a mentor on my time to figure out the math. (If anyone's curious, we're trying to implement a simple light sensor from a photocell for purely academic/learning purposes.)
Thanks!
