Well it depends on the sensor and the microcontrollers ur using
for an example, if you are using an arduino there is a built-in function for reading analog values and this will make your life easier. On the other hand, if you are using a pic18f4520 you will have to write a function by changing different values of registers and could take you an extra few lines.
In general, the digital sensor is easier to use but it only can provide you with two values (0 and 1). Some times they use different kind of pulses to interpret different data.
On the other hand, the analog sensor will give you only one value that can be interpreted into more detailed information.
It is difficult to answer your question without details, it depends