Add A Dallas Temperature Sensor

How do you connect a Dallas OneWire (1-Wire ) DS18S20 or DS18B20 to a ESP8266 NodeMCU board and display the temperature on a webpage?

  1. Connect the sensor as show in the following diagram.

  2. Load the following code onto a new sketch and upload to the NodeMCU8266.