Motor and sensor

Hi you're code is interresting but i don't understand what you're saying about the analogRead()

What does it do exactly and in what in can help for my project in my code?