I've got working Humidity sensor system based on this: Arduino code to trigger an IFTTT/Maker event · GitHub
Im trying to get a air humidity reading also frim my DHT11. Problem is that basic soil humidity sensors give easy analog data to include to my string like this:
p = append_str(p, "{\"value1\":\"");
p = append_ul(p, analogRead(READ_THIS_PIN));
But I cannot use the same way to add a float variable:
float humidity = dht.readHumidity();
to my string:
p = append_str(p, "\",\"value3\":\"");
p = append_str(p, humidity)'
Error says: error: cannot convert 'float' to 'char*' for argument '2' to 'char*
Sorry if I couldn't make my self clear enaugh. It's my first post and I don't really have no idea what I'm doing. :o