temperature sensors

does anyone have code that works?

Yes, I have some. Probably won't work with your sensors. On the other hand, it might. If you said what kind of sensors (in the form of a link), and showed your code, and explained what "it didn't work" really meant, perhaps some real help would be forthcoming.