Solucionado codigo ssr

ok gracias muchas gracias arduino

Your retardo variable is zero so those calls to delay do nothing. I suspect that in consequence, you're getting multiple readings as your buttons bounce.