# Using a DS18B20 with an emonPi

**URL:** <https://community.openenergymonitor.org/t/using-a-ds18b20-with-an-emonpi/23237>\
**Category:** emonPi\
**Created:** [24 March 2023 15:55 UTC](https://community.openenergymonitor.org/t/using-a-ds18b20-with-an-emonpi/23237 "2023-03-24T15:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Randall](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/ecc23a/32.png) [@Peter\_Randall](https://community.openenergymonitor.org/u/Peter_Randall)\
**Post date:** [24 March 2023 15:55 UTC](https://community.openenergymonitor.org/t/using-a-ds18b20-with-an-emonpi/23237/1 "2023-03-24T15:55:52Z")

</div>

Have been searching for info about this. Have any changes been made to access SSH from Emonhub? Am wishing to use DS18B20 temperature sensors which appear to need a small amount of code inserted using SSH. Removing the pre-loaded Sd card would be a complete pain due to where the Pi is mounted (along with a packom hat for mbus connection) in an enclosure near the top of a wall. All very new to this so feeling my way in.

---

<div class="post-metadata">

**Author:** ![christian](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/c/b2d939/32.png) [@christian](https://community.openenergymonitor.org/u/christian)\
**Post date:** [25 March 2023 11:38 UTC](https://community.openenergymonitor.org/t/using-a-ds18b20-with-an-emonpi/23237/2 "2023-03-25T11:38:30Z")

</div>

Hi @Peter_Randall, welcome to the community!

You can use up to 6 DS18B20 sensors connected via the RJ45 socket, as per the link below. (I use 6)

No code changes are required for up to 6, just a reboot.

Be careful to use the correct RJ45 socket as there is one on either end. One is for networking, the other for sensors.

[https://docs.openenergymonitor.org/emonpi/temperature\_sensing.html](https://docs.openenergymonitor.org/emonpi/temperature_sensing.html)

Christian.
