int sensor=8;
void setup() {
// put your ssetup code here, to run once:
pinMode(sensor,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("Analog:");
// Serial.println(analogRead(A0));
Serial.println(digitalRead(sensor));
delay(500);
}