Thnaks for the ideas mr_e

mackrackit,
I set the pins to analogue after setting them digital, so I don't think that's the problem using ADC.