# Dragino LoRa shield with LMIC and 1-Wire sensor problem

**URL:** <https://www.thethingsnetwork.org/forum/t/dragino-lora-shield-with-lmic-and-1-wire-sensor-problem/24412>\
**Category:** LMIC\
**Created:** [March 27, 2019, 5:22pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-lora-shield-with-lmic-and-1-wire-sensor-problem/24412 "2019-03-27T17:22:06Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![martin\_schilliger](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/martin_schilliger/32/30274_2.png) [@martin\_schilliger](https://www.thethingsnetwork.org/forum/u/martin_schilliger)\
**Post date:** [March 28, 2019, 8:09pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-lora-shield-with-lmic-and-1-wire-sensor-problem/24412/14 "2019-03-28T20:09:47Z")

</div>

## Your support is great, thank you!!

> [@arjanvanb](#):
>
> (Beware: in your earlier log, the “Length: 37” line was printed or captured an hour late too, at 20:04:33.070, while the “Send” line was then captured at 19:05:03.489. Adding `flush()` ensures that the log is always printed right away.)

Ah, that looked crazy for me too, didn’t know that this is the reason, thank you!

> [@arjanvanb](#):
>
> I wonder if those 3 seconds make it fail to detect some overflow

Could it be the delay() after it, that causes problems? I’ll try to remove it.

> [@arjanvanb](#):
>
> - Maybe using [the recommended](https://www.milesburton.com/Dallas_Temperature_Control_Library#One_Wire_Library) OneWire 2 helps?  
> […]
> - Maybe one can explicitly pause/disable 1-Wire after taking the measurements?

I’ll take a look at this 😊

> [@arjanvanb](#):
>
> By the way, what is port 13 used for?

Just a red LED 😉

> [@arjanvanb](#):
>
> You might add trying another LMIC library to your lists of tests.

That was my first try, looking throught all the different LMIC libraries I found. The problem was the same everywhere. But I didn’t try the to look into the sensors. Will do that the next days.

> [@cslorabox](#):
>
> Additionally the original question here said the time to failure was variable.

I **thought** that, but it’s not true. **It’s working in the right interval for exactly 71min and then it uses a 71min interval**. I just haven’t found the regularity before YOU named it.

### What’s next

You gave me a bunch of ideas to try, I will do that and come back with new console logs and knowledge. Thank you for the support so far!  
I think I need some time to try all of them, but now it’s too late in the evening. 😴

I’ll keep this thread up to date. 🤗

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/dragino-lora-shield-with-lmic-and-1-wire-sensor-problem/24412)._
