Help with "not defined in this scope"

I have been absolutely wracking my brain about why this code continues to give me errors, but for some reason, I cannot get it to verify. I continue to get errors stating that xxxx was not declared in this scope, but I have no idea what to code in to fix this. The idea behind this code is to take data from a subscribed event and then put both data points into a thingspeak format, but I cannot get it to verify. Any help at all would be so awesome

// This #include statement was automatically added by the Particle IDE.
#include <Adafruit_DHT.h>

// This #include statement was automatically added by the Particle IDE.
#include <ThingSpeak.h>

#define DHTPIN D5

#define DHTTYPE DHT11

TCPClient client;

unsigned long ThingSpeakChannelNum = 1250574;
const char * APIWriteKey = “60ZIWV6VDC51G5DA”;

void setup() {
Particle.subscribe(“G45 Iot project Humid”, String (humidity));
Particle.subscribe(“G45 Iot project Temp”, String (temperature));
}

void loop() {
delay(5000);

Particle.publish("Group 45 IOT project", PRIVATE);

ThingSpeak.writeFields(ThingSpeakChannelNum, APIWriteKey);
ThingSpeak.setField(2,humidity);
ThingSpeak.setField(1,temperature);
}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.