int buttonPin = A0; // here I define the the pin which will become the information about the button state int ledPin = A1; // here I define the pin which will give the information to the LED int buttState = 0; // this variable should become the information about the button status void setup() { // void setup is the main program which runs only once each time you start the program or press the reset button pinMode(ledPin, OUTPUT); // here I tell the MCU that the LED pin will have to give some output pinMode(buttonPin, INPUT); // here I tell Arduino IDE that the button will give some input } void loop() { // void loop I need for continueous repating of the commands contained buttonState = digitalRead(buttonPin); // read the the button(pin) tate and save it into variable "buttState" if (buttonState == HIGH) { // check if the button is pressed (level = high = 5V) digitalWrite(ledPin, HIGH); // if button is pressed turn LED on (5V) } else { digitalWrite(ledPin, LOW); // else if the button state is not pressed, turn LED off (0 V) } }