Trouble reading analog input
Measure the voltage of the pin with a high impedance meter (the voltage between the phototransistor and the resistor) and see if its matching up with what you have in software. If it is then you need to fix your bias on your photo transistor or the transistor could be broken.
If the voltage doesn't match up with your software value then you have got some debugging to do.