int buttonPin = 3;
int tipka;
int led = 7;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(buttonPin, INPUT_PULLUP);
pinMode(led, OUTPUT);
//pinMode(buttonGreen, INPUT);
}
void loop() {
tipka=digitalRead(buttonPin);
Serial.println(tipka);
if(digitalRead(buttonPin) == LOW) digitalWrite(led, HIGH);
else digitalWrite(led, LOW);
}