I’m unsure what you mean, I’m relativity new at this hopefully this helps…
int del=1000; // duration between temperature readings
int B=3975; //B value of the thermistor
lcd.clear(); lcd.print("TEMP = "); lcd.print(temperature); lcd.print("C");
lcd.setCursor(0, 16); lcd.print("Light = "); lcd.print(light);
Serial.print(light); Serial.print(" ; "); Serial.println(temperature);
I’m basically looking for a formula to convert the reading from analog (1) into Lux. What I’m confused about is the reading coming from the LDR, are all the LDR’s measuring at the same standard? When I shine a bright light against the LDR it reaches a reading of 758/761 never any higher. When I cover the LDR in complete darkness it goes to 0.
I added the formula lux=500/resistance(“light” in my code) but it doesn’t seem to work, especially when I covered the LDR again in darkness. It went to -1.
I can’t find a schematic sorry. Do you think its a matter of me testing and calibrating the LDR to my own measurements of darkness and bright? or does a formula actually exist to change it straight into Lux, so that I can display it on the Lcd screen…