Can you give a specific part number of the sensor?
or some example code that you have tried?

I(we) are quite willing to helpl but need enough detail so that the question can be addressed.

As you probably know, there are litterally hundreds of digital and analog sensors.
Are you trying to sense light, temperature, sound, mass, movement?

Here is an article showing how to interface with one or many "Dallas Semiconductor 1-wire Temperature sensors (DS18B20)"

http://www.picbasic.co.uk/forum/cont...r-nine-of-them