# Error with Example6 Sensor Tutorial

**URL:** https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854
**Category:** Uncategorized
**Created:** [December 15, 2023, 2:02pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854 "2023-12-15T14:02:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)
#### Post date: [December 15, 2023, 2:02pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/1 "2023-12-15T14:02:17Z")

</div>

I’m using a ESP32 with a notecarrier A.  
Arduino IDE 1.8.19  
Both ESP and note carrier hooked up with USB. (to power Notecarrier)  
SCL on ESP to SCL on notecarrier.  
The only alteration of the sketch is to add my ID to #define PRODUCT\_UID  
Here is the error message I get in the serial monitor:

[ERROR] i2c: timeout {io}  
[ERROR] error encountered during I2C transmit hook execution

I hate to admit this but I had this working at one point!!

Any help will be appreciated!!

---

<div class="post-metadata">

### Author: ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)
#### Post date: [December 15, 2023, 2:27pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/2 "2023-12-15T14:27:07Z")

</div>

Do you mind sharing a picture of your setup?

`i2c: timeout {io}` would typically indicate an issue with the wiring. Either there is bad signal between the Notecard and ESP32 or there is a power problem.

Both may become more obvious with a photograph.

Cheers,  
Zak

---

<div class="post-metadata">

### Author: ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)
#### Post date: [December 15, 2023, 6:05pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/3 "2023-12-15T18:05:44Z")

</div>

Picture attached. The carrier and ESP are stuck to an unused PCB with thick double stick tape. They are isolated from the PCB.

This is from the event body:

```auto
{
    "text": "boot (brown-out & hard reset [16292])",
    "voltage": 4.8710938
}

```

 ![IMG_0070.JPG](https://us1.discourse-cdn.com/flex020/uploads/blues/original/2X/f/f6d3de53dde62666195d14686575355602d1b06e.jpeg)

---

<div class="post-metadata">

### Author: ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)
#### Post date: [December 15, 2023, 9:28pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/4 "2023-12-15T21:28:50Z")

</div>

Try to plug a jumper from one header to another marked `GND` on each device. They need a common reference to ground so they can interpret signals cleanly; I don’t think ground from the USB plugs will cut it.

As far as the brown out is concerned, the modem can generate a 2A spike. Most laptop USB connectors are only rated for 500mA. If you have a LiPo handy, plug it into the Notecarrier, and that will clean up the brown outs.

Best,  
Zak

---

<div class="post-metadata">

### Author: ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)
#### Post date: [December 16, 2023, 8:27pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/5 "2023-12-16T20:27:31Z")

</div>

I hooked up ground jumper and have hooked up a lipo (measures 3.9V) and solar panel. I get the same arduino message:

[ERROR] i2c: timeout {io}  
[ERROR] error encountered during I2C transmit hook execution

and this in the event log

{“text”:“boot (brown-out & hard reset [16292])”,“voltage”:3.8710938}

 ![IMG_00711](https://us1.discourse-cdn.com/flex020/uploads/blues/original/2X/d/d7f8ce2baeb8cfd326d618a99d10ee35b3f281da.jpeg)

---

<div class="post-metadata">

### Author: ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)
#### Post date: [December 18, 2023, 5:52pm UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/6 "2023-12-18T17:52:30Z")

</div>

even with the lipo attached, since it’s a small one and not the highest voltage— I charged up a 18650 and have it attached now. here’s the event message:

{  
“text”: “boot (brown-out & hard reset [16292])”,  
“voltage”: 4.234375  
}

Same serial monitor info

---

<div class="post-metadata">

### Author: ![rayjorgnsen](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rayjorgnsen](https://discuss.blues.com/u/rayjorgnsen)
#### Post date: [December 20, 2023, 11:44am UTC](https://discuss.blues.com/t/error-with-example6-sensor-tutorial/1854/7 "2023-12-20T11:44:36Z")

</div>

Problem solved. It was a bad ESP
