i try to verify buit it tells me 'else without previous if statement' (when there is an if statement before it) please help i know im a total newbie to all this and thank you for helping
const int analogPin = A0;
const int ledPin = 13;
const int threshold = 400;
void setup() {
pinMode (ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int analogValue = analogRead (analogPin);
if(analogValue > threshold); {
digitalWrite (ledPin, HIGH);
}
else{
digitalWrite (ledPin, LOW);
}
Serial.println (analogValue);
delay(2);
}