# Example code with external sensor and sleepy sensor

**URL:** <https://discuss.blues.com/t/example-code-with-external-sensor-and-sleepy-sensor/655>\
**Category:** Uncategorized\
**Created:** [February 9, 2022, 9:08pm UTC](https://discuss.blues.com/t/example-code-with-external-sensor-and-sleepy-sensor/655 "2022-02-09T21:08:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 10, 2022, 4:24am UTC](https://discuss.blues.com/t/example-code-with-external-sensor-and-sleepy-sensor/655/4 "2022-02-10T04:24:43Z")

</div>

I see the problem, and it’s nothing that you’ve done.

The `EN` pin on the Notecarrier-AF was originally designed to power down the entire board. As you now know, you don’t want this behavior when you are trying to use `SleepySensor`.

If you are comfortable modifying the hardware, you can cut the trace between the `EN` pin and the button, [as discussed here](https://discuss.blues.com/t/card-attn-restarting-my-host-and-notecard-when-running-under-battery/507/13). If you have an exact-o-knife, it is a snap!

I’ll DM and see if I can’t help fix your hardware situation.

Cheers,  
Zak

---

_[View the full topic](https://discuss.blues.com/t/example-code-with-external-sensor-and-sleepy-sensor/655)._
