---
description: >-
  For this activity we will be connecting the DS18B20 temperature sensor to the
  NodeMCU board. We will also build a web server to display the sesnsor
  readings.
---

# Read and Display temperature sensor  readings with NodeMCU.

#### What will you need ?

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

#### Setup the circuit&#x20;

The DS18B20 temperature sensor can connected in two different configurations, namely, parasite mode and normal mode as follows:

#### Normal Mode&#x20;

![Normal Mode (randomnerdtutorial.com)](https://3073865318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ly3RLHyAwTi7Hml5lZN%2F-LyECpeX7Du2jcZ1BYMT%2F-LyED4jM6A1LABx7JdW6%2Fds18b20normalmode.png?alt=media\&token=59998110-3c39-4131-9fd5-cea5a8d268f3)

#### Parasite Mode&#x20;

![](https://3073865318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ly3RLHyAwTi7Hml5lZN%2F-LyEDYha5-QuEIVm97NS%2F-LyEDacAS1shwF1rUuo0%2Fds18b20parasitemode.png?alt=media\&token=4172ee02-3b8b-4231-8b9f-e6f54b47fa2d)

