neither send 0 nor 1 as digital

dhenry:

Set the pin as an input AND turn off the pullup resistor by setting the output to 0.

The part after "AND" is not necessary.

Nope. It's definitely necessary.