I have a temp/humidity sensor, I am reading the values using
float humidity = dht.getHumidity();
float temperature = dht.getTempCelcius();
I have tried pretty much all I can think of to publish these variables using particle.variable but I am either getting no value or garbage. Can someone assist on what needs to be done to achieve this starting with the definition of the variable in the particle.variable function please? I’d like to be able to see the humidity/temperature in 2 decimal format.