Wanting to set up multiple (4) analog soil sensors to arduino using gauges on dash board i am very poor with code have gotten by with old system by finding sketches online and here, to get by but mqtt not much out there yet other then basics not multiple sensors. Have tried many things and get errors with code here is a example
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = “”;
char password = “”;
char clientID = “”;
#define SENSOR_PIN 0
#define VIRTUAL_CHANNEL 1
#define SENSOR_PIN 1
#define VIRTUAL_CHANNEL 2
Cayenne.begin(username, password, clientID);
// This function is called at intervals to send sensor data to Cayenne.
//This function is called at intervals to send sensor datato Cayenne.
With this i get ‘VIRTUAL_CHANNEL1’ Was not decareed in this scope