How to output the data recived from potentiometer with digital output?

What do you mean by "transfer the data"?

What are you trying to do?

"threshold"?