Wrong readings from voltage divider

I think that you should use digitalRead.
analogRead would be better with a photocell.

You should rig these up in a box, use tape to position them right, so the IRED is "shining" right on the phototransistor. Once you get the on/off (digital) right then maybe you can try spreading them apart for a proportional output.