int eingang=A5;
int LED=11;
int Licht=0;
void setup() {
// put your setup code here, to run once:
Serial.begin (9600);
pinMode (LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Licht=(analogRead,eingang);
Serial.print("Licht = ");
Serial.println(Licht);
if (Licht > 18)
{
digitalWrite (LED,HIGH);
}
else
{
digitalWrite(LED,LOW);
}
delay(1000);
}