# Multiple DS18s20 per port?

**URL:** https://forum.xod.io/t/multiple-ds18s20-per-port/1647
**Category:** Uncategorized
**Created:** [December 29, 2018, 10:31am UTC](https://forum.xod.io/t/multiple-ds18s20-per-port/1647 "2018-12-29T10:31:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![churkin](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@churkin](https://forum.xod.io/u/churkin)
#### Post date: [December 29, 2018, 10:31am UTC](https://forum.xod.io/t/multiple-ds18s20-per-port/1647/1 "2018-12-29T10:31:32Z")

</div>

Good day.  
I have 3 DS18S20 sensors in the project, I want to connect them to one Arduino port. The above library is connected, but it allows you to work with only one sensor on the port. You can implement work with several sensors on one port and realize the function of reading the serial number of the sensors, what would be the understanding of which sensor to interrogate? Otherwise, the implementation of the OneWire protocol functions for these sensors does not make sense.

---

<div class="post-metadata">

### Author: ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)
#### Post date: [December 29, 2018, 10:44am UTC](https://forum.xod.io/t/multiple-ds18s20-per-port/1647/2 "2018-12-29T10:44:30Z")

</div>

Hello and welcome to the community, @churkin!

There is no OneWire support in the standard library yet.

But you can implement a wrapper over OneWire C++ library (as it done with i2c) and use it. If so, it will be cool if you share it to the community 🙂

Check out these articles:

- [Creating Nodes for XOD in C++](https://xod.io/docs/guide/nodes-for-xod-in-cpp/)
- [Defining Custom Types](https://xod.io/docs/guide/custom-types/)
- [Wrapping Class-based Arduino Libraries](https://xod.io/docs/guide/wrapping-arduino-libraries/)

Or you can just write custom code for your case only.

Good luck with it 🙂

---

<div class="post-metadata">

### Author: ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)
#### Post date: [December 30, 2018, 5:45pm UTC](https://forum.xod.io/t/multiple-ds18s20-per-port/1647/3 "2018-12-30T17:45:22Z")

</div>

> [@brusher\_ru](#):
>
> But you can implement a wrapper over OneWire C++ library

If you want to do that, perhaps I can help a bit by doing the initial conversion of an existing OneWire library. I have a [tool](https://forum.xod.io/t/taking-experimental-requests-to-convert-arduino-ide-libraries/1588) that can (usually) generate most of the nodes. The tool is still experimental, but that means it needs further testing.

Send me [information](https://forum.xod.io/t/taking-experimental-requests-to-convert-arduino-ide-libraries/1588) if you’d like to try.
