Why is my voltage less when using this code