const int pbPin = 32, rLED = 4;
int  t = 500;
int pbRead; 

void setup() {
  // put your setup code here, to run once:
  pinMode(pbPin, INPUT);
  pinMode(rLED, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  pbRead = digitalRead(pbPin);
  Serial.println(pbRead);
  delay(t);

  if(pbRead==1)
  {
    digitalWrite(rLED, HIGH);
  }
  else
  {
    digitalWrite(rLED, LOW);
  }
}