IR photodiode analogRead

How can i get the analog value of the light reflected from a material? I need to measure the intensity of the light reflected

Google “arduino photodiode” for lots of info.

Light doesn’t have “an analog value”. That’s not a property of light. It’s main properties are intensity, wavelength (which is commonly called “colour”), direction, and polarisation. Maybe some more.

So which of these properties do you want to measure and turn into some analog value?

im am planning to get an analog value depending on the amount of light that bounces back from a material.

So you're trying to make a reflectivity meter.

Not that hard. 1) get an LED with the colour of interest (materials may have wildly different reflection for different wavelengths of light). 2) get a light sensor (as you insist on analog that would have to be an LDR or a photo transistor). 3) build it inside a light proof housing, at exact opposite angles to your sample, and start measuring. Note that you'll have to do calibration with known surfaces to get any useful values out of it.

wvmarle: So you're trying to make a reflectivity meter.

Not that hard. 1) get an LED with the colour of interest (materials may have wildly different reflection for different wavelengths of light). 2) get a light sensor (as you insist on analog that would have to be an LDR or a photo transistor). 3) build it inside a light proof housing, at exact opposite angles to your sample, and start measuring. Note that you'll have to do calibration with known surfaces to get any useful values out of it.

Thank you so much!