Hi @adam,
Sorry about the late reply mate, have been enjoying to much beer and whisky…
I have changed the code so it outputs to serial and to virtual pins. The serial output is spot on, but still no data in MyDevices. Here is the code…
#include “CayenneMQTTESP8266.h”;
#include “CayenneDefines.h”
#include “SimpleTimer.h”
#include “DHT.h”
#define CAYANNE_DEBUG
#define CAYANNE_PRINT Serial
#define DHTPIN 5
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
float h;
float t;
char ssid = “sdsdsdsds”;
char wifiPassword = “sdsdsdsdsd”;
char username = “345345345”;
char password = “345345345345”;
char clientID = “34534534534”;
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(115200);
Cayenne.begin(username, password, clientID, ssid, wifiPassword);
dht.begin();
}
void loop() {
Cayenne.loop();
h = dht.readHumidity();
t = dht.readTemperature();
Serial.print("Humidity: “);
Serial.print(h);
Serial.print(”%, Temperature: ");
Serial.print(t);
Serial.println(“C”);
Cayenne.virtualWrite(V0, t);
Cayenne.virtualWrite(V1, h);
}
It output to the serial so I know the wiring and the sensor works…
Here is the dashboard…
I’m at a bit of a loss as to what I’ve done wrong or missing.
Hopefully someone can tell me what simple error I have made!
Cheers
Ben:roll_eyes: