Arduino Program

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

int LDR = A0;

int LDRread;

void setup()
{
Serial.begin(9600);
pinMode(LDR, INPUT);
}

void loop()
{
LDRread = analogRead(LDR);
Serial.println(LDRread);
delay(200);
}

You might also like