void setup() {
  Serial.begin(115200);
  DDRD &= 0xFB;
  PIND = 0b00000100;
}

void loop() {
  int buttPin = PIND & 0x04;
  Serial.println(buttPin);
  delay(500);
}