Sensor with integrated ID
Add a 1Wire serial number from Dallas like DS2401 for logical id then you should power each sensor to match their physical location with their logical id. then make a table in your code so you know which sensor you are reading.
I made something like this and it worked. aorry I do not have more time to explain. Sure many pros here they can help you, if I get your problem right.