analogRead Basic Help.

You read an analogue pin.
2)
Compare the value that you have read against a value that you determined using an if statement. The range is from 0 to 1023; e.g. if(value < 512)
3)
Take action based on the result of the compare (in the same way you would take action after a digitalRead)