int PB = 2;
int LED = 1;
int dataPB = 0;
void setup() {
pinMode(PB, INPUT);
pinMode(LED, OUTPUT);
// put your setup code here, to run once:
}
void loop() {
dataPB = digitalRead(PB);
if (dataPB == 1)
{digitalWrite(LED, HIGH);}
else
{digitalWrite(LED, LOW);}
// put your main code here, to run repeatedly:
}