Compilation Error in nodeMCU along with oneWire temperature sensor ds18b20, and 2x16 LCD display (not I2C)
It appears you're using an outdated version of the OneWire library that does not support ESP8266. Please follow these instructions to upgrade to the latest release of the library:


Sketch > Include library > Manage libraries...
Wait for the download to finish.
In the "Filter your search..." box, type "onewire".
Click on the "OneWire" entry.
Click the "Update" button.
Wait for the installation to finish.
Click the "Close button.


The recent releases of the OneWire library have support for ESP8266 so this should solve your compilation issue.