int sdata=0;
int spin=6;
void setup() {
// put your setup code here, to run once:
pinMode(spin,INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
sdata = digitalRead(spin);
Serial.print("Arduino");
Serial.println(sdata);
delay(500);
}