Turns out all you need is analogRead(aPin)