Help with counter and led light

thanks for the pinMode problem I already fixed it, and the ledSinCupo goes high when it is 15 otherwise its low and ledCupo is high, but that works all right my problem is when there "is a car" and a card (valPresEnt and valPresSal are under 25 and estadoTEnt and estadoTSal high), i want the counter to go up or down right after I stop pressing that buttn, but LED will still be high because the photoresistor is lower than 25 (finger still on it).
But my counter is going up or down after I remove my finger from the photoresistor not when I stop pressing the button.