My Graph widget not updating


Hello Everyone,
I’ve created a project with arduino UNO + ethernetshield.
I’ve added a graph widget to make a temperature graph. But its not showing any graph,
Though my device is connected. Here is my code:

From Loop function:

void loop()

// This function is called when the Cayenne widget requests data for the Virtual Pin.
int sensorReading = analogRead(tmpPin);
Serial.print(“From Sensor:”);
float temperature = sensorReading / 9.31;

Cayenne.celsiusWrite(VIRTUAL_PIN, temperature);

Its not entering into CAYENNE_OUT(VIRTUAL_PIN) function.

Pls help me.

Best Regards.


I did a wrong. My virtual was V1, But it should be V0.
After changing #define VIRTUAL_PIN V0

It is working so far.

Thanks everybody.


Glad you got it figured out! Thanks for updating us :slight_smile: