Hi
You are setting gpio.5 as input with trisio = 100000
Only gpio.3 must be set to work as adc.
Then the correct trisio = 1000. Or = 8
Greetings...
Ruben de la Pena .