Desktop shows wrong DHT22 temperature vs. App

Through my PC web browser I have desktop shows wrong DHT22 temperature but on mobile App it show correct temp.
On desktop 16.5 F. on mobile App it is correctly at 61.7 F.

I have been using Cayenne for years with Pi’s and just recently wanted to try it with Arduinos.

Using Uno, DHT22 and W5100. Is this a bug somewhere since it is only on the web page and not the App?

we no longer support mobile app issues.
For web issue are you sending the temperature data as celsius or Fahrenheit. Can you share the code?

Sure I can share my code if it helps. Do I simply copy & paste (removing my MTQQ credentials) in a reply?

BTW - Mobile is fine, it’s the desktop that has the issue.
Follow up - On the desktop as soon as I log in the temperature is fine MOMENTARLY then shows wrong.


But we no longer support any mobile issue.

Understood, this is a desktop issue.

#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
#include <CayenneMQTTEthernet.h>
#include <DHT.h>

// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username = “xxx”;
char password = “xxx”;
char clientID = “xxx”;

#define DHTPIN 2 // Digital pin connected to the DHT sensor

// Uncomment whatever type you’re using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
//#define DHTTYPE DHT21 // DHT 21 (AM2301)


DHT dht(DHTPIN, DHTTYPE); // Initialize DHT sensor.

void setup() {
Cayenne.begin(username, password, clientID);

void loop() {

// This function is called at intervals to send temperature sensor data to Cayenne in Celsius.
Cayenne.virtualWrite(TEMPERATURE_VIRTUAL_CHANNEL, dht.readTemperature(), “temp”, “c”);

// This function is called at intervals to send humidity sensor data to Cayenne.
Cayenne.virtualWrite(HUMIDITY_VIRTUAL_CHANNEL, dht.readHumidity(), “rel_hum”, “p”);

so you want it to show as Fahrenheit or celsius on the dashboard?

In the dashboard settings I set it to Fahrenheit.

Ahh, I think I know what you are going to say. If I’m right you are going to tell me to put the c to f conversion in the sketch?

yes, that was what it is.

Thank you for that.