title: How to use NodeMCU 0.9 - 12E pins D0-D4
body: <p>I've been trying to connect a simple sensor to any of pins D0-D4 but see values ranging all over the place. Nothing consistent to them.</p>
  
  <p>Started wondering if these pins might be in use due to one of the modules included in my build. For example, I've tried hooking up a DHT11 sensor using the <a href="http://nodemcu.readthedocs.org/en/dev/en/modules/dht/#dhtread11" rel="nofollow">NodeMCU DHT Module</a>. I am getting the following values returned:</p>
  
  <pre><code>status: -2
  temp: -999
  humi: -999
  temp_dec: 0
  humi_dec: 0
  </code></pre>
  
  <p>I also tried a PIR Motion Sensor but can't get it to trigger. I haven't had any problems hooking these up on Arduinos. I'm pretty sure the physical hookup is correct.</p>
  
  <pre><code>S -&gt; any of D0-D4 (don't work)
  - -&gt; Gnd
  + -&gt; VCC 3V
  </code></pre>
  
  <p>My particular DHT11 has a 10K pullup resistor on the PCB.</p>
  
  <p>One more clue that these pins are different is that I'm unable to use only D2 out of D0-D4 for my SPI OLED DC. Any of the others throw garbage on the display.</p>
  
  <p>Here is a dump of my NodeMCU startup:</p>
  
  <pre><code>NodeMCU custom build by frightanic.com
      branch: master
      commit: c8037568571edb5c568c2f8231e4f8ce0683b883
      SSL: false
      modules: adc,bit,cjson,coap,crypto,dht,enduser_setup,file,gpio,i2c,mqtt,net,node,pwm,rtctime,spi,tmr,u8g,uart,wifi
   build  built on: 2016-02-03 23:59
   powered by Lua 5.1.4 on SDK 1.4.0
  </code></pre>
  
  <p>Can anyone confirm that any of the modules included in my build are interfering with me using D0-D4 for arbitrary use?</p>
  
  <p>Or, are these pins not intended for these sensors?</p>