# Display the DHT11 sensor reading on a web server using NodeMCU.

The first thing that we need to do is to setup the circuit. For this project we will using the following components:

**What will you need ?**&#x20;

* ESP8266 NodeMCU Dev kit board.
* male-to-male jumper wires&#x20;
* DHT11 humidity and temperature sensor&#x20;
* 4.7k Ohm resistor
* Breadboard&#x20;

#### Setting up the circuit

Setup the circuit so that it looks like the one in the diagram below:

![Circuit for DHT11 sensor and NodeMCU (randomnerdtutorial.com)](https://3073865318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ly3RLHyAwTi7Hml5lZN%2F-LyJRM9h7Me8Df5GQD0V%2F-LyJRnFZaLAFPkuU3TTS%2Fesp8266-dht.png?alt=media\&token=a2f5dd5e-c2f2-4367-95a2-0b9a08c9ebbb)

In this activity, we’re wiring the DHT data pin to GPIO5 (D1), but you can use any other suitable GPIO. Read our [ESP8266 GPIO Reference Guide](https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/) to learn more about the ESP8266 GPIOs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://reacoda.gitbook.io/molemi-iot/introducing-the-nodemcu/display-the-dht11-sensor-reading-on-a-web-server-using-nodemcu..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
