Plan
Board
Made with Fritzing
Code
int pinLDR = A1;
int valSensor;
void setup()
{
Serial.begin(9600);
}
void loop()
{
valSensor = analogRead(pinLDR);
Serial.println(valSensor);
delay(300);
}
Download
Fritzing: ldr_serial.fzz
Made with Fritzing
int pinLDR = A1;
int valSensor;
void setup()
{
Serial.begin(9600);
}
void loop()
{
valSensor = analogRead(pinLDR);
Serial.println(valSensor);
delay(300);
}
Fritzing: ldr_serial.fzz