analogRead of analogWrite

AnalogWrite does not provides an analog signal but a digital signal with a variable duty cycle.

To obtain an analog Signal you must use à low pass filter .

Therefore a measure with analogRead risk nothing but will give an invalid value depending the signal is High or low when the ADC samples.