Portable Dht 11 temperature humidity sensor

Portable Dht 11 temperature humidity sensor

cults3d

items needed 2 18650 rechargeable batteries 1 tp4056 charging board 1 Arduino Nano board 1 12c 16x2 LCD 1 14x9 on/off switch Arduino ide software programing cable hook up wires 4 3mX4m screws Code,,, #include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); dht.begin(); // initialize the sensor } void loop() { // wait a few seconds between measurements. delay(10000); // read humidity float humi = dht.readHumidity(); // read temperature as Celsius float tempC = dht.readTemperature(); // read temperature as Fahrenheit float tempF = dht.readTemperature(true); // check if any reads failed if (isnan(humi) || isnan(tempC) || isnan(tempF)) { Serial.println("Failed to read from DHT sensor!"); } else { Serial.print("Humidity: "); Serial.print(humi); Serial.print("%"); Serial.print(" | "); Serial.print("Temperature: "); Serial.print(tempC); Serial.print("°C ~ "); Serial.print(tempF); Serial.println("°F"); } }

Download Model from cults3d

With this file you will be able to print Portable Dht 11 temperature humidity sensor with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Portable Dht 11 temperature humidity sensor.