| поискавой системы для электроныых деталей |
|
KY-015 датащи(PDF) 5 Page - JOY-IT |
|
|
|||||||||||||||||||||||||||||
KY-015 датащи(HTML) 5 Page - JOY-IT |
|
5 / 7 page ![]() #!/usr/bin/python # coding=utf-8 # Required modules are imported and set up import RPi.GPIO as GPIO import Adafruit_DHT import time import sys # The pause of two seconds between measurements is set here sleeptime = 2 # Sensor should be set to Adafruit_DHT.DHT11, # Adafruit_DHT.DHT22, or Adafruit_DHT.AM2302. DHTSensor = Adafruit_DHT.DHT11 # Here you can declare the pin to which the sensor module is connected GPIO_Pin = 23 print ('KY-015 sensor test - temperature and humidity) try : while (1): # Measurement is started and the result is written to the corresponding variables Luftfeuchte, Temperatur = Adafruit_DHT.read_retry(DHTSensor, GPIO_Pin) print ("-----------------------------------------------------------------") if Luftfeuchte is not None and Temperatur is not None: # The measured result is displayed in the console print ('Temperature = {0:0.1f}*C | Air humidity = {1:0.1f}%'.format(Temperatur, Luftfeuchte)) |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |