#define TASTER 8
void setup() {
pinMode(TASTER, INPUT);
Serial.begin(9600);
}
void loop() {
static int counter=0;
static boolean tasterState=digitalRead(TASTER);
if (tasterState== LOW)
{
counter++;
Serial.println(counter);
tasterState=HIGH;
}
}