- Wed Apr 15, 2015 9:16 pm
#14672
I hooked a DS18B20 OneWire temp sensor to my brand new NodeMCU devkit device and ran the sample DS18B20 code right from the firmware examples on github and the sensor seems to be working, but the displayed temperature isn't even close to correct. It's not clear exactly what schematic I should use for this, I've seen examples with and without a 4.7k resistor from V+ to the data pin on the DS18B20, neither way produced a correct temperature reading. It appears there have been some recent changes to the DS18B20 example code, so I don't know for sure the example code works yet or not.
Can someone clarify whether they've been able to get it to work with the devkit device and if so exactly what circuit and code they used?