Quantcast
Channel: ThingSpeak IoT Community - Forum: Arduino
Viewing all articles
Browse latest Browse all 172

JasonW on Arduino UNO WiFi Dev with HX711 load cell send data to ThingSpeak

$
0
0

It looks like you are declaring an int led in the first part.  But then in the looped code, you use a variable called pump to read the analog input.

Then further down you use  uri += String(led);

Since led hasn't been assigned a value, adding it to the uri string will have unexpected results. 

Try this:

change int led to int pump

change uri += String(led); to uri += String(pump); 


Viewing all articles
Browse latest Browse all 172

Trending Articles