const unsigned int buttonPin1 = 7;
bool buttonState1 = LOW;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(buttonPin1, INPUT);
}
void loop()
{
buttonState1 = digitalRead(buttonPin1);
if (buttonState1 == HIGH)
{
Serial.println("high");
}
else
{
Serial.println("low");
}
}