hello i figured out my problem
CdS CON 0
light VAR Word
DEBUG Home,DEC5 light,CR
this works, when i run it it gives me a big value, and when i cover the photocell it returns 0. that works.
and thanks for trying to help me
Glad you figured it out! You learned more by figuring out what you did wrong on your own than if we just pointed it out. If you go to the Parallax website, they have tons of information about this sort of stuff for the future.
I have to give you a lot of credit for figuring it out because this stuff aint easy when you don't know whats going on in the beginning. We have all been there before. Quick advice for the future; if you post as much information upfront, such as your current code, results, problems and even a link to a photo, members would help as much as they can.
here's a link to Parallax.com a great place for tons of information:
Here is a link to another site that explains more about this topic: