I was hoping building nodemcu with the 1-wire module would be the key, so I tried the nodemcu builder. When I use the example code for the DS18B20 I now get temperatures above 85 °C, which is obviously way too high for ambient air temperatures . I used this code https://github.com/nodemcu/nodemcu-firm ... s18b20.lua and these are the readings I got:
NodeMCU custom build by frightanic.com
branch: master
commit: c8037568571edb5c568c2f8231e4f8ce0683b883
SSL: false
modules: dht,file,gpio,net,node,ow,tmr,uart,wifi
build built on: 2016-02-28 20:26
powered by Lua 5.1.4 on SDK 1.4.0
lua: cannot open init.lua
> dofile("ds18b20.lua")
40 35 180 93 0 0 0 228
Device is a DS18S20 family device.
P=1
130 5 85 85 127 255 14 16 254
CRC=254
Temperature= 88.1250 Celsius
P=1
131 5 85 85 127 255 13 16 232
CRC=232
Temperature= 88.1875 Celsius
P=1
131 5 85 85 127 255 13 16 232
CRC=232
Temperature= 88.1875 Celsius
P=1
131 5 85 85 127 255 13 16 232
CRC=232
Temperature= 88.1875 Celsius
P=1
132 5 85 85 127 255 12 16 252
CRC=252
and so on...