analogRead of analogWrite

Apply a filter to get the average value.
See:-
http://www.thebox.myzen.co.uk/Tutorial/PWM.html
There is no RMS value to measure because you do not have an AC signal just a pulsed DC signal.