const int pininput =7;
 void setup() {
  Serial.begin(9600);
  pinMode(pininput, INPUT_PULLUP);

 }
 void loop() {
  int data = digitalRead(pininput);
  Serial.println((data));
 }