byte ldr = A0;
int nilaiLDR;

void setup() {
  Serial.begin(9600);
}

void loop() {
  nilaiLDR = analogRead(ldr);
  Serial.print("Nilai LDR: ");
  Serial.println(nilaiLDR);
  }