The LDR im using is a MLG4458 with the following specs:
Light Resistance @ 10 Lux(Kohm) = 100-200
Light Resistance @ 100 Lux(Kohm) = 20-35
Dark Resistance @ (Mohm) = 20
Ive got it connected to my arduino with a 39K resistor (LDR from 5v to PinA1 and 39K from GND to PinA1).
The 39K gives the best light range, giving analog readings of around 12 in a dark room with only the TV on and gives around 970 when i shine a very bright light source directly into the LDR. Now i want to display the LUX instead of analog values. Any help?
int InteriorLDR = 1;
int InteriorLDRreading;
void setup () {
Serial.begin(9600);
}
void loop() {
InteriorLDRreading = analogRead(InteriorLDR);
Serial.print("Interior - Analog - ");
Serial.print(InteriorLDRreading);
Serial.println("");
delay(2000);
}