11 Replies Latest reply on Apr 25, 2017 5:11 AM by FGT

    Why my dht11 or dht22 not work in my intel galileo gen 1 ?

    Radikia_Cuber

      I have try the air temperature&humidity sensor (dht11 & dht22) in arduino use this sketch:

       

       

      include "DHT.h"

      #define DHTPIN 2

      #define DHTTYPE DHT22

       

      DHT dht(DHTPIN, DHTTYPE);

       

      void setup() {

        Serial.begin(9600);

        dht.begin();

      }

       

      void loop() {

        float h = dht.readHumidity();

        float t = dht.readTemperature();

        Serial.print("Kelembaban: ");

        Serial.print(h);

        Serial.print(" Suhu: ");

        Serial.println(t);

        delay(1000);

      }

       

      thats work on arduino,, but not work on my galileo gen 1... what should i do?  i need your help, thankyou