DHT11 Humidity and temperature sensor

Hi i am new to this sensor DHT11. it has only 3 pins VCC GND and Digital input. It also says that it can be plugged to any Digital Pin.

What I dont get is how can it output humidity and temperature with only 1 DIGITAL pin. (which can be even a non PWM pin).

Sorry i am really new to this thing so i am kind off lost :smiley:

Thanks In advance

Here is the data sheet

http://www.micropik.com/PDF/dht11.pdf

You need to use the library to read the data. It is not on or off but a digital value that needs to be read and decoded.

Weedpharma

It uses "1 wire" serial communication, similar to I2C.

1-Wire is the accepted commercial name for Dallas Semiconductor (now Maxim) protocol for using a ground and data wire (can never strictly be one wire) to connect many different devices together on a single cable. It relies on precise timing and unique device serial numbers and family codes. I2C is a Philips protocol and also uses two wires unlike SDI which has three. I2C does not have degree of uniqueness that true 1-Wire devices have. Another posting recently confused 1-Wire and DHT11 serial. Maxim do not produce a 1-Wire humidity device. The best way to measure humidity is the 1-Wire DS2438 AtoD coupled with a Honeywell HIH-4000 sensor IMOHI