# GPIO pin with raspberry pi

**URL:** <https://discourse.nodered.org/t/gpio-pin-with-raspberry-pi/9550>\
**Category:** General\
**Created:** [28 March 2019 14:31 UTC](https://discourse.nodered.org/t/gpio-pin-with-raspberry-pi/9550 "2019-03-28T14:31:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zihao96](https://avatars.discourse-cdn.com/v4/letter/z/22d042/32.png) [@zihao96](https://discourse.nodered.org/u/zihao96)\
**Post date:** [28 March 2019 14:31 UTC](https://discourse.nodered.org/t/gpio-pin-with-raspberry-pi/9550/1 "2019-03-28T14:31:35Z")

</div>

The value for my float switch connected to gpio pin keep fluctuating. I tried several other pins but the problem is still there. Is there any solution for this problem?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 March 2019 14:51 UTC](https://discourse.nodered.org/t/gpio-pin-with-raspberry-pi/9550/2 "2019-03-28T14:51:48Z")

</div>

How have you connected the float switch to the pin? In detail please, what is the other end of the switch connected to, is there a pullup resistor fitted etc.  
Does it fluctuate whatever the state of the switch or only when it is in one state?  
Show us how you have configured the GPIO In node.  
How are you seeing that it is fluctuating? Are you doing that using a debug node connected directly to the GPIO node?  
Please try to answer all the questions.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 March 2019 15:54 UTC](https://discourse.nodered.org/t/gpio-pin-with-raspberry-pi/9550/3 "2019-03-28T15:54:55Z")

</div>

Is this an actual float switch in a liquid? If so what is the level of the liquid is it near the level of the switch?

You need to worry about the changes that happen then. I’ll have to pull out my greenhouse flow where I had two float switches in the water tank
