# Trouble getting booleans from "rpi-gpio in" node

**URL:** <https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355>\
**Category:** General\
**Created:** [18 January 2021 22:30 UTC](https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355 "2021-01-18T22:30:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosPerz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carlosperz/32/35591_2.png) [@CarlosPerz](https://discourse.nodered.org/u/CarlosPerz)\
**Post date:** [18 January 2021 22:30 UTC](https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355/1 "2021-01-18T22:30:52Z")

</div>

I'm trying to get the 0 value that is coming from the GPIO pin 40, but when I print the payload it shows some numbers, not a boolean output such as the documentation says

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1ac6bd21d5988a2395f5a7d38cc28d4fd0c63d89.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 January 2021 22:34 UTC](https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355/2 "2021-01-18T22:34:04Z")

</div>

The numbers are the timestamp you are injecting.

The gpio will send a message when it changes state. Try switching the physical input on/off.

---

<div class="post-metadata">

**Author:** ![CarlosPerz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/carlosperz/32/35591_2.png) [@CarlosPerz](https://discourse.nodered.org/u/CarlosPerz)\
**Post date:** [18 January 2021 22:52 UTC](https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355/3 "2021-01-18T22:52:48Z")

</div>

Thanks dude, the documentation wasn't so clear, since I'm using it to recive data from a analog sensor through Arduino I wasnt able to change the inputs, but with some functions it worked

---

<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:** [1 February 2021 22:52 UTC](https://discourse.nodered.org/t/trouble-getting-booleans-from-rpi-gpio-in-node/39355/4 "2021-02-01T22:52:48Z")

</div>

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