DHT11 sensor basics
DHT11 is a temperature and humidity sensor on the single chip. The sensor is low cost basic digital temperature and humidity sensor. To sense humidity and temperature, it uses a capacitive humidity sensor and a thermistor respectively. It measures the surrounding environment and gives a digital signal at its data pins. As it does not require any analog pin or data, so its easy to use, but need to be careful with timing to get data.