# GPIO Node Status change from "OK" to "1" or "0"

**URL:** <https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235>\
**Category:** General\
**Created:** [29 December 2024 14:53 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235 "2024-12-29T14:53:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuddy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wuddy/32/97690_2.png) [@wuddy](https://discourse.nodered.org/u/wuddy)\
**Post date:** [29 December 2024 14:53 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/1 "2024-12-29T14:53:12Z")

</div>

Hello. May someone can help me 🙂 First of all , i want to say "hi" . Im new here in the NodeRed Forum. Im wuddy from Germany an i startet recently my first IoBroker Projekt and using NodeRed to read the GPIOs from my Raspberry Pi.  
I dont know why, but the State of the GPIO is always defined as "OK" in Node RED. I already checkt the input with a Simple Code and the Raspberry gets the Signal 1 or 0. So it works. But in NodeRED it is only shown as"OK". Has someone an idea how i can change this? i use the version 3.1.14. best regards and thank you in advance

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 December 2024 16:05 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/2 "2024-12-29T16:05:42Z")

</div>

Welcome to the forum @wuddy.

Can you give us a bit more information:

1. What Raspberry Pi do you have?
2. What operating system does it run?
3. What version of Node-red?
4. Are you using Docker?
5. Which GPIO pin are you using?
6. How is it wired up?
7. Can you show us a screen capture of the GPIO node setup?
8. What is this simple code which shows the GPIO status 1 or 0?

---

<div class="post-metadata">

**Author:** ![wuddy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wuddy/32/97690_2.png) [@wuddy](https://discourse.nodered.org/u/wuddy)\
**Post date:** [29 December 2024 18:07 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/3 "2024-12-29T18:07:14Z")

</div>

Hi. I use a raspberry Pi4B , 4GB Ram with Raspberry Pi OS 32bit. Node Red is 3.1.14.  
I found a solution : with this library it works: iiot2k/node-red-gpiox.

Anyway Thanks for your help

---

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [29 December 2024 19:13 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/4 "2024-12-29T19:13:09Z")

</div>

Hi,  
I recommend switching to 64bit OS, as I plan to only support 64bit in the next version.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 December 2024 19:17 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/5 "2024-12-29T19:17:46Z")

</div>

Hmm.

Current version of Raspberry Pi OS for a Pi 4 is 64 bits, released 19 November 2024  
Current version of Node-red is 4.0.8.  
For some reason the [flows.nodered.org](http://flows.nodered.org) page for that node does not have a link to a github repository (where one would expect issues and new releases to be recorded).

Just saying 🙂

---

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [29 December 2024 19:28 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/6 "2024-12-29T19:28:04Z")

</div>

Not all Node-Red nodes have a GitHub repository.  
The location is generally npm.  
There is a CHANGELOG.md file where the changes are recorded.  
In the next version a Github repository will also be set up.

---

<div class="post-metadata">

**Author:** ![wuddy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wuddy/32/97690_2.png) [@wuddy](https://discourse.nodered.org/u/wuddy)\
**Post date:** [29 December 2024 20:04 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/7 "2024-12-29T20:04:30Z")

</div>

i´m new in the world of Raspberry and NodeRed and i dont have a glue of how everything works. so please forgive me if i don`t understand everything right :-) . I installed the 32Bit version because the 64bit was not very fast. in my opinion the 32 Bit version runs better. But may im wrong? I don`t know the difference. may my Pi ist not fast enough? i have the 4 GB version

---

<div class="post-metadata">

**Author:** ![wuddy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wuddy/32/97690_2.png) [@wuddy](https://discourse.nodered.org/u/wuddy)\
**Post date:** [29 December 2024 20:06 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/8 "2024-12-29T20:06:47Z")

</div>

@iiot2K is the library in node red from you? as i mentioned before im new in the world of raspberry. actually I´m a mechanic 🙂

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 December 2024 21:47 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/9 "2024-12-29T21:47:07Z")

</div>

My main Node-red server is a Raspberry Pi 4 with 4GB memory. It runs the 64 bit OS. After all, it has a 64 bit processor.

Note though that performance depends on quite a few factors.

I do not run a browser on the Pi, in fact I don't have the OS version with the desktop, nor a monitor.  
Instead I access the Linux command line with ssh and Node-red with a browser on my PC.

I don't use an SD card, instead the Pi boots from an SSD.  
And not all SD cards are created equal.  
You can get a rough idea of yours' performance with these two comands, for write speed and read speed respectively.

```auto
dd if=/dev/zero of=./TestingFile bs=100M count=10 oflag=direct
dd if=./TestingFile of=/dev/zero bs=100M count=10 oflag=dsync

```

On my Pi 4 with SSD this shows write speed of 286MB/s and read speed of 362MB/s  
By comparison, a not very good SD card gives me 13.2 and 23.3 MB/s

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 March 2025 21:47 UTC](https://discourse.nodered.org/t/gpio-node-status-change-from-ok-to-1-or-0/94235/10 "2025-03-29T21:47:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
