I'm okay with the wiring. I've done it many times before with the ds18d20 and the RasPi and/or ESP using Blynk. I have my resistor in place between +5 and signal.
Right now I'm trying to get it to work using the "Sparkfun Thing" (an ESP development board like the NodeMCU). Once I get it working, I'll move over to the ESP-01.
I'm almost sure the problem's in my sketch. My Cayenne is identifying the board, but no values seem to be coming through on serial. Could it be that my Cayenne widget is not asking my board for data?
I've tried it with and without pinMode and still don't get any values.
Here's my sketch: (for some reason anything with <> is not showing up in the preview, but I assure you I have OneWire.h, DallasTemperature.h and ESP8266WiFi.h, etc. included)
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
// If you're not using the Ethernet W5100 shield, change this to match your connection type. See Communications examples.
// Virtual Pin of the DS18B20 widget.
#define VIRTUAL_PIN V1
// Digital pin the DS18B20 is connected to. Do not use digital pins 0 or 1 since those conflict with the use of Serial.
const int tmpPin = 2;
// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token = "myToken";
// Your network name and password.
char ssid = "myWifi";
char password = "myPassword";
Cayenne.begin(token, ssid, password);
// This function is called when the Cayenne widget requests data for the Virtual Pin.
// Send the command to get temperatures.
// This command writes the temperature in Celsius to the Virtual Pin.
// To send the temperature in Fahrenheit use the corresponding code below.