# Multiple DS18B20 temperature sensors and Emon Tx v3

**URL:** <https://community.openenergymonitor.org/t/multiple-ds18b20-temperature-sensors-and-emon-tx-v3/17424>\
**Category:** emonTx\
**Tags:** emontx, emonhub\
**Created:** [6 April 2021 09:32 UTC](https://community.openenergymonitor.org/t/multiple-ds18b20-temperature-sensors-and-emon-tx-v3/17424 "2021-04-06T09:32:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [6 April 2021 18:19 UTC](https://community.openenergymonitor.org/t/multiple-ds18b20-temperature-sensors-and-emon-tx-v3/17424/6 "2021-04-06T18:19:56Z")

</div>

If you have your temperature monitoring working on an Arduino Leonardo, then the easiest solution is to use that. You will need to get the data to the server that runs your emonCMS.

If it is a local Raspberry Pi, then you can use a serial connection that is documented here:  
Wiki:  
[https://wiki.openenergymonitor.org/index.php/EmonTx\_V3.4#Direct\_connection\_emonTx\_V3\_.3E\_Raspberry\_Pi\_GPIO](https://wiki.openenergymonitor.org/index.php/EmonTx_V3.4#Direct_connection_emonTx_V3_.3E_Raspberry_Pi_GPIO)  
(Clearly, you use the Tx and Rx data pins that are in a different place on your Leonardo to the emonTx).  
A little more information is here:

> [@EmonTX to Rpi - Direct Serial Connection](https://community.openenergymonitor.org/t/emontx-to-rpi-direct-serial-connection/13114/38):
>
> By way of an update, I bought some dupont connectors, a crimping tool and made up a cable. I had the case lying around and the Pi already had the header soldered on. Currently running a full emonScript install. The improvement would be to use right-angle headers and [this case](https://www.thingiverse.com/thing:2270702) - it would be really neat then! [Link to wiring diagram](https://community.openenergymonitor.org/t/4-ct-emonbase-using-emontx-and-pi-zero-w/6580/17)

Wiring diagram: [4 CT emonBase using emonTx and Pi Zero W - #17 by pb66](https://community.openenergymonitor.org/t/4-ct-emonbase-using-emontx-and-pi-zero-w/6580/17)

If it is your emonPi, I understand you can use any GPIO pin for a second serial data input, but I am not a RPi expert so I cannot give you the details.

If the server running emonCMS is some distance away (or it is [emoncms.org](http://emoncms.org)), then most likely the easiest solution is still to connect serially to a Raspberry Pi running emonCMS but send the data via your LAN or the Internet to the emonCMS where you have the dashboard.

If you have a WiFi LAN, then you can use the serial connection again, but this time to a Pi Zero W (which does not have an Ethernet socket, so you cannot use it with a wired LAN).

---

_[View the full topic](https://community.openenergymonitor.org/t/multiple-ds18b20-temperature-sensors-and-emon-tx-v3/17424)._
