Arduino too slow HELP needed!!

the numbers are not random they are the amount of capacitance and with 2 switches it is still 5 seconds.