On Arduino all is working
[#include](https://forum.espruino.com/search/?q=%23include) "DHT.h" [#define](https://forum.espruino.com/search/?q=%23define) DHTPIN 0 //DHT dht(DHTPIN, DHT22); DHT dht(DHTPIN, DHT11); void setup() { Serial.begin(9600); dht.begin(); } void loop() { delay(2000); float t = dht.readTemperature(); if (isnan(t)) { Serial.println("Error"); return; } Serial.print(t); }
@Aleksandrs started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On Arduino all is working