DHT11/DHT22 - temperature and humidity sensor


#21

May i know that what is mean by" You will need to terminate the connection script
before uploading new sketches since it blocks access to the Serial port" because i just now try tutorial its work i able to upload dummy data to dashboard but now i cant upload the new sketch that just now you given


#22

i can use this code already thanks tad but may i know that does the trigger function is down recently ?


#23

Yes


#24

if i want add gas sensor to this coding and i add this

"int analogValue = analogRead(A0);
int gas = map(analogValue, 0, 1023, 0, 100);
Cayenne.virtualWrite(3, gas, “analog_sensor”, “null”); "

below line of Cayenne.virtualWrite(2, event.relative_humidity, “rel_hum”, “p”);
is this correct


#25

Yes


#26

May i know that how to change the word Analog in widget of gas sensor to percentage
i change the coding null to p also not changes


#27

@laikuanyu94 have a look at this Data types for Cayenne MQTT API


#28

Alright thanks


#29

Is that the the unit value inside the table is fix one or we change change it


#30

i have never tried them interchanged but just made a simple example with this code:

Cayenne.virtualWrite(21, y, "analog_sensor", "p"); 
Cayenne.virtualWrite(22, y, "analog_sensor", "null");

but the change only can be seen in gauge widget and not in value widget. you can try diffferent combination.