const int buttonPin = A0; // the number of the pushbutton pin
int buttonValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
buttonValue = analogRead(buttonPin);
if (buttonValue>=1009 && buttonValue<=1020)
Serial.println(buttonValue);
if (buttonValue>=999 && buttonValue<=1007)
Serial.println(buttonValue);
if (buttonValue>=984 && buttonValue<=997)
Serial.println(buttonValue);
if (buttonValue>=953 && buttonValue<=982)
Serial.println(buttonValue);
delay(100);
}