int sensorPin=8;
void setup() {
// put your setup code here, to run once:
pinMode(sensorPin,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(digitalRead(sensorPin));
delay(1000);