Max30205 data not being sent to Cayenne platform

The data correctly displays on serial monitor but when i add the code for connecting with Cayenne, the data doesn’t appear on serial monitor anymore and won’t appear on the site either.
Any help?

can you share the code you are using.

#include <CayenneMQTTESP8266.h>
#include <Wire.h>
#include "Protocentral_MAX30205.h"
MAX30205 tempSensor;

       
char ssid[] = "";      
char wifiPassword[] = "";
char username[] = "583c7200-2816-11eb-883c-638d8ce4c23d";
char password[] = "d21909fb19c6df30b80e8cf44f54c40717b6d5f1";
char clientID[] = "b1d305b0-d1d8-11eb-8779-7d56e82df461";

                   

void setup() {
 
  Serial.begin(9600);
  Wire.begin();
  while(!tempSensor.scanAvailableSensors()){
    Serial.println("Couldn't find the temperature sensor, please connect the sensor." );
    delay(30000);
  }
 
  Cayenne.begin(username, password, clientID, ssid, wifiPassword);
  tempSensor.begin();
}
void loop() {
   
   float temp = tempSensor.getTemperature(); // read temperature for every 100ms
   Serial.print(temp ,2);
   Serial.println("'c" );
   delay(100);
   Cayenne.virtualWrite(2,temp,"temp","c");
   Cayenne.loop();

}
               

Here you go. I tried with with VIN and 3V3 pin as well.
I removed the ssid details right now but i did use it during testing.

thanks for the information.
https://krogerfeedback.nl https://talktosonic.onl https://talktowendys.vip https://whataburgersurvey.onl

put some Serial.println code lines in before and after each cayenne code line, and check the serial monitor for when the code stops running. Easiest way to find the line that is stopping you

1 Like