Maybe I'm misunderstanding your goal, but I would think about this some more. Are you actually trying to get analog data or digital pin state (i.e. on or off)? If it's digital pin state, then you...