simple ldr
A minimal mounting for ldr usage
This is a memo for ldr mounting.
The minimal arduino code :
// simple ldr sensor
// connected to analog in 0
int senseur=0;
void setup(){
Serial.begin(9600);
}
void loop(){
int val=analogRead(senseur);
Serial.println(val);
delay(100);
}