I've got a photoresistor that I'm trying to read the value for, but I'm only reading 1023.
void setup() {
Serial.begin(9600);
pinMode(A0, INPUT);
}
void loop() {
int val = analogRead(A0);
Serial.printlnt(val);
delay(10);
}
I've got a photoresistor that I'm trying to read the value for, but I'm only reading 1023.
void setup() {
Serial.begin(9600);
pinMode(A0, INPUT);
}
void loop() {
int val = analogRead(A0);
Serial.printlnt(val);
delay(10);
}
ok. fixed it. No need for help.