Imagine I have a box with 8 jacks in the back, into which I connect 8 individual DS18B20 temperature sensors that are sensing temperatures in specifically numbered locations (specifically terrariums). So jack 1 goes to tank 1, jack 2 goes to tank 2, etc.
Is there a way that I can enumerate the sensors so they always end up in particular order? For example, I start with 4 sensors hooked up, and add a 5th to jack 5, and upon bootup the new sensor is detected. How can I make sure that he 'old' sensors stay the same order (index value), so tank 3 stays jack 3? Or I have all 8 sensors hooked up, and one of them fails and gets replaced... is there a way to detect that there is a 'new' sensor replacing the old value?
(Just putting this in words makes me think that I could 'memorize' the existing sensors into EEPROM, make a comparison with the scan, and if there is a change, interactively ask what jack to assign it to. Does it sound like a logical solution?)