# SenseHat environment / motion problem

**URL:** <https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851>\
**Category:** General\
**Created:** [8 June 2021 09:39 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851 "2021-06-08T09:39:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 09:39 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/1 "2021-06-08T09:39:19Z")

</div>

Hello to all,

for a project I got the task to display the temperature and compass value from a Sense Hat in a dashboard. Now I have the problem, if I activate both hooks at environment and motion in the node of the SenseHat, I get only the values of the Compass displayed and no more temperature values. What can I do differently, if I want to read both range or do I have to make a correction in a configuration file?

(I have also already slowed down the transmission of the messages with a delay node).

Thanks

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 09:41 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/2 "2021-06-08T09:41:51Z")

</div>

Just powering up a Pi with a SenseHat and I'll be able to help you out shortly

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 09:51 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/3 "2021-06-08T09:51:05Z")

</div>

It sends all the information but the environment ones are only sent at 1 per second so it's hard to spot them in the debug amongst all the motion ones

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/38d364f49c9945243c129c9f8fb1ad523b2e4e35.jpeg)

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 09:57 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/4 "2021-06-08T09:57:22Z")

</div>

Unfortunately, the information about the temperature does not come through, it is not displayed in the dashboard even after a day. Therefore, I have already installed a delay node so that the messages are transmitted more slowly.

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 09:57 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/5 "2021-06-08T09:57:52Z")

</div>

![Greenshot-000009](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/89d6e11825de8b6168ae1709227199f22e62ba6f.png)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 10:06 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/6 "2021-06-08T10:06:54Z")

</div>

It is probably your delay node setting that is causing your issue.

Make a test flow like this and just turn the debugs off and on and see what happens

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/45043dbe68e43133afef0a0b15cf01a2951edf5a.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46b195d7289507d58d2c63e80ae5ccd7ee6d6093.png)

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 10:15 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/7 "2021-06-08T10:15:25Z")

</div>

only the motion data is transferred

 ![Greenshot-000011](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a099fa0fd072a0df647c5240f05698929c50428c.png)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 10:21 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/8 "2021-06-08T10:21:56Z")

</div>

☹

mm - very strange ☹

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 10:25 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/9 "2021-06-08T10:25:39Z")

</div>

Nevertheless, thank you very much for your help. 😀

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 10:27 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/10 "2021-06-08T10:27:02Z")

</div>

Try this workaround

configure two SenseHAT nodes - one for enviroment - one for motion

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97cf9028466b1b5e32ecf3dba3fa9865d7e25e15.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e6b950b26a0e339d23eed2e177c7298945ebbe2.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d707f8caa6519338996e386c7b3e32212368686.png)

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 10:32 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/11 "2021-06-08T10:32:14Z")

</div>

Now only the environment events are transferred and motion events are no longer transferred 🤪

 ![Greenshot-000012](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/50ab04ed10be9d62d2a0f216c54e708e6634ad62.png)

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 10:33 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/12 "2021-06-08T10:33:22Z")

</div>

![Greenshot-000013](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/992a2a5b1846dec64212b899ea4ef92653185863.png)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 10:43 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/13 "2021-06-08T10:43:50Z")

</div>

What version of Node-RED are you running?

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [8 June 2021 10:44 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/14 "2021-06-08T10:44:20Z")

</div>

1.3.5 is running

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 10:45 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/15 "2021-06-08T10:45:49Z")

</div>

I'm on an old version but can't upgrade at moment due to the general internet problems but I' try and do so later

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [8 June 2021 19:12 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/16 "2021-06-08T19:12:47Z")

</div>

upgraded to 1.3.5 - still works fine for me

Do you have another Pi you could try it out on?

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [9 June 2021 04:15 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/17 "2021-06-09T04:15:18Z")

</div>

Thanks for the help and the info with the version. Yes I have two Pi and the second I prepare with an old version. Thanks. 😀

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [9 June 2021 06:09 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/18 "2021-06-09T06:09:46Z")

</div>

This is probably just one of those weird things that only happens on one computer.

As I said, I upgraded to the latest version 1.3.5 and mine still works.

I would try your other Pi and see what happens

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 June 2021 12:42 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/19 "2021-06-10T12:42:28Z")

</div>

Does your 2nd pi work?  
I don't think this is a version issue

---

<div class="post-metadata">

**Author:** ![JoachimCo](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JoachimCo](https://discourse.nodered.org/u/JoachimCo)\
**Post date:** [10 June 2021 12:47 UTC](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851/20 "2021-06-10T12:47:34Z")

</div>

It is not.... 😢

Which version do you have at the node-red-node-pi-sense-hat?

[Next page](https://discourse.nodered.org/t/sensehat-environment-motion-problem/46851.md?page=2)
