We use these in our new ESP8266 Sensor Server but will make more generic programming notes here.
Arduino pin numbers. source
We're using one-wire digital thermometers accessed via Paul Stoffregen's Arduino-compatible library hacked to meet our needs. pjrc
We can avoid hard-coding WiFi credentials into Arduino sketches using a llibrary called WiFiManager. post , github
YOUTUBE A-P20vC7zq4 Brian Lough, Avoid Hard-Coding WiFi Credentials Using WiFiManager