In order to use the DHT11 sensor in an Arduino sketch, a DHT11 library is loaded in the Arduino IDE. This is different from the MCP9700 temperature sensor that outputs an analog voltage that represents temperature. That is, it sends serial digital data out on the pin, rather than outputting an analog value. This sensor clocks temperature and humidity data out of the DATA pin. Power the DHT11 sensor with 5V from the Arduino, as explained in the next section. DHT11 Temperature and Humidity Sensor Pinout This allows the sensor to measure the current air temperature and relative humidity. Because of the holes, air passes onto the sensor surface. As can be seen in the image, the sensor has a blue plastic case with square holes. The following image shows the DHT11 sensor pin numbering or pinout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |