Why is my voltage less when using this code

Why not

Because it is stupid using led1, led2, etc. as the names of pins that have switches connected to them.