# Temperature measurement outside the tag

**URL:** https://f.ruuvi.com/t/temperature-measurement-outside-the-tag/275
**Category:** 🇬🇧 Feature requests (voting)
**Created:** [9 April 2017 12:01 UTC](https://f.ruuvi.com/t/temperature-measurement-outside-the-tag/275 "2017-04-09T12:01:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jari.isohanni](https://f.ruuvi.com/user_avatar/f.ruuvi.com/jari.isohanni/32/39_2.png) [@jari.isohanni](https://f.ruuvi.com/u/jari.isohanni)
#### Post date: [12 April 2017 14:16 UTC](https://f.ruuvi.com/t/temperature-measurement-outside-the-tag/275/3 "2017-04-12T14:16:09Z")

</div>

Its possible to use external sensor with Ruuvitag, see attached image. We used DS18B20 temperature sensor and attached it to GPIO pin. I’m not even into electronics, but still I was able make required connections. Prototyping was easy with Espruino, code below

> var ow = new OneWire(4);  
> device = ow.search()[0]; // search returns an array of device IDs  
> if (device===undefined)  
> print(“No OneWire devices found”);  
> else  
> print(“device:”+device);

> print(“Getting temp”);

> var sensor = require(“DS18B20”).connect(ow);

> setInterval(function() {  
> console.log(sensor.getTemp());  
> }, 1000);
> 
> ![](https://f.ruuvi.com/uploads/default/original/1X/b0751595b462f2a8bc89a056b791e126c42a9aa8.jpeg)

---

_[View the full topic](https://f.ruuvi.com/t/temperature-measurement-outside-the-tag/275)._
