how to convert analog to digital

once i have converted my analog signal into digital then how to put those digital values on digital pins?

Like this?

actually i want to transmit analog signal using rf transmitter which works on digital communication. so will this work the you suggested??

Connect your transmitter. Send the integer value (or hibyte/lowbyte). There is probably an example to follow your radio