int tem = 0;
int lux = A0;

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
  pinMode(11, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {

  tem = analogRead(A0);
  //digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  
  delay(tem);                      // wait for a second
  //digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  
  delay(tem); 

  lux = map(tem , 0,1024,0,255);
analogWrite(11,lux);
}
$abcdeabcde151015202530fghijfghij