Guys please help i cant get anything to work i just simpely want a button i press then timer counts down and after relay activates but nothing i do work and with everything i add it gets worse with more problems i use arduino uno version of ide i dont know and windows
int buttonPin = 12;
int relayPin = 13;
void setup() {
// put your setup code here, to run once:
pinMode(relayPin,OUTPUT);
pinMode(buttonPin,INPUT);
}
void loop() {
if (digitalRead(buttonPin) == HIGH)
digitalWrite(relayPin, HIGH);
delay(5000);
{
if (digitalRead(buttonPin) == LOW)
digitalWrite(relayPin, LOW);
delay(5000);f
}
}