# Configuring GPIO pins

**URL:** <https://discourse.mozilla.org/t/configuring-gpio-pins/25349>\
**Category:** WebThings\
**Created:** [February 8, 2018, 6:14pm UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349 "2018-02-08T18:14:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhylands](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/dhylands/32/20711_2.png) [@dhylands](https://discourse.mozilla.org/u/dhylands)\
**Post date:** [February 8, 2018, 6:14pm UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349/1 "2018-02-08T18:14:51Z")

</div>

Here’s a wiki page that describes how to configure GPIO pins

> **[Configuring GPIO for use with the gpio adapter](https://github.com/WebThingsIO/wiki/wiki/Configuring-GPIO-for-use-with-the-gpio-adapter)**
>
> Developer Wiki. Contribute to WebThingsIO/wiki development by creating an account on GitHub.

Note that if you installed the gpio adapter prior to this morning (Feb 8, 2018), then you’ll need to remove it and add it back again in order to get the updated version, which supports input pins.

---

<div class="post-metadata">

**Author:** ![Geoterz](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@Geoterz](https://discourse.mozilla.org/u/Geoterz)\
**Post date:** [February 9, 2018, 8:39pm UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349/2 "2018-02-09T20:39:02Z")

</div>

I’m checking the wiki regarding GPIO pins i trying to figure out how to read a simple DHT22 sensor I have attached, but without any luck.

---

<div class="post-metadata">

**Author:** ![dhylands](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/dhylands/32/20711_2.png) [@dhylands](https://discourse.mozilla.org/u/dhylands)\
**Post date:** [February 9, 2018, 10:30pm UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349/3 "2018-02-09T22:30:01Z")

</div>

The GPIO adapter is designed for really simple gpio devices, like LEDs or relays.

The DHT22 isn’t really a GPIO device. It uses a 1-wire like protocol to talk with it and would require some special code. It looks like it is possible to talk to it using some python code on a raspberry pi, so it should be possible to create an adapter which would work with it.

---

<div class="post-metadata">

**Author:** ![rzr](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/rzr/32/30601_2.png) [@rzr](https://discourse.mozilla.org/u/rzr)\
**Post date:** [June 21, 2018, 9:40pm UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349/4 "2018-06-21T21:40:54Z")

</div>

This could be part of generic sensors addons, If there is a need let me know, I’ll help you.

[https://s-opensource.org/2018/04/25/mozilla-iot-generic-sensors/](https://s-opensource.org/2018/04/25/mozilla-iot-generic-sensors/)

---

<div class="post-metadata">

**Author:** ![skkiot](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@skkiot](https://discourse.mozilla.org/u/skkiot)\
**Post date:** [April 27, 2020, 7:32am UTC](https://discourse.mozilla.org/t/configuring-gpio-pins/25349/5 "2020-04-27T07:32:07Z")

</div>

Hi,  
I am new on IOT using RaspberryPi. I will use only GPIO pins. I have already configured out and in of the pins. Out are working fine, but input are not working. I does not change its status as displayed omn screen with change of voltage levels at pin.  
Further, one pin [15] state is always pressed even when it is off/open. It is configured identically with anothe pin, 14, which shows ok. But it also does not change its status when its input signal level changes.  
Please guide me.
