Cheap sensor for angular rotation (not rotation rate)

Right now, the gadget is open (no case), so outside light gets in. I'd have to account for changes in lighting conditions (which change the values for B & W points). To use just the gradient ring, I'd need to add a LED next to the light sensor, and a light-proof enclosure around the LED/sensor to force constant lighting. I may do it.