The keyword "void" placed before a function name specifies that the function does not return a parameter.
I see plenty of delay statements in your code. The computer does nothing else while it is delaying, so that is a major problem.
Please study the "blink without delay" example that comes with the Arduino IDE to learn how to avoid that problem.