Setting pin modes in a custom library

DON'T use pinMode() on a pin used only for analogRead().

You have THREE pin variables but you only initialize two of them. Then you use the third.