int cislo;
int test = 0;
void setup()
{
pinMode(A5, INPUT_PULLUP);
Serial.begin(9600);
}
void loop()
{
if(digitalRead(A5) == LOW && test == 0)
{
test = 1;
cislo++;
Serial.println(cislo);
}
else if(digitalRead(A5) == HIGH && test == 1)
{
test = 0;
}
}