photo sensor and arduino

quote :
adn his link to the code doesent work, and when i try my own code, its just ranging between 350-410, and light doesent seem to be affecting it...

Remember that LDR's do not work like switches, they have a certain resistance in total darknes, and a certain resistance in "very bright light". They do not have infinite resistance in total darkness, so you will probably not get the total 0 - 1023 range when you read the analog pin it's connected to.