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?
How do you connect a Dallas OneWire (1-Wire ) DS18S20 or DS18B20 to a ESP8266 NodeMCU board and display the temperature on a webpage?
Connect the sensor as show in the following diagram.
Load the following code onto a new sketch and upload to the NodeMCU8266.