How many device can i connect when using OneWire?

You need to study the Analog Devices* 1-WireTM documentation.

1-WireTM can support very large numbers of devices - but it requires more careful driver design than the single microcontroller port pin commonly found in Arduino projects.

There's been a number of discussions on this recently; eg,


* Analog Devices acquired Maxim, who acquired Dallas Semiconductor - the originators of 1-WireTM