DHT11 Module

DHT11 Temperature and Relative Humidity Sensor Module With Cable


29 ₪

الناشر: متجر القطع الالكترونية

القسم: مستشعرات - سينسور

تاريخ النشر: 2021-07-15




connect to Arduino

Overview:

- DHT11 send Dupont Line Module - Product Features A long dimension: 28mm X 12mm X height 10mm width Second, the main chip: Ozon DHT11 temperature and humidity sensor Third, the working voltage: DC 5V - Four characteristics: 1. A humidity measuring range :20 --- 90% RH 2. humidity measurement accuracy: ± 5% RH 3., the temperature measuring range :0 --- 60 4. the temperature measurement accuracy: ± 2 5. the working voltage: DC5V 6. the digital signal output





code:

code
نسخ
اقتباس
عرض
تنزيل
	
								
#include "dht.h" #define dht_apin A0 // Analog Pin sensor is connected to dht DHT; void setup(){ Serial.begin(9600); delay(500);//Delay to let system boot Serial.println("DHT11 Humidity & temperature Sensor\n\n"); delay(1000);//Wait before accessing Sensor }//end "setup()" void loop(){ //Start of Program DHT.read11(dht_apin); Serial.print("Current humidity = "); Serial.print(DHT.humidity); Serial.print("% "); Serial.print("temperature = "); Serial.print(DHT.temperature); Serial.println("C "); delay(5000);//Wait 5 seconds before accessing sensor again. //Fastest should be once every two seconds. }// end loop()





download library:





سلة المشتريات افراغ السلة