Don't attach the code, just copy for the forum and paste in line using code tags. Most helpers won't download the .ino and open it on their machine...
See How to get the best out of this forum for best practices and practical details about code tags, what info to provide etc.
--
how do you measure voltage ? your servo is driven through a PWM signal.