An explanation of two ways to read multiple DS18B20 sensors on the same data line with Arduino: by sequential index or by each sensor's unique address.
Wiring the digital DS18B20 temperature sensor over the 1-Wire protocol, and why the pull-up resistor matters.