void loop()
{
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit
if(Blynk.connected())
{
Serial.println(t); // no problem blynk server success connect
delay(1000);
//sendSMS(); // blynk server no connect.
}
Blynk.run();
timer.run(); // Initiates SimpleTimer
}
sendSMS(); Serial monitor print
[0] Blynk v0.3.6 on Arduino Uno
[0] Getting IP
[5302] IP:192.168.50.43
Serial.println(t); Serial monitor print
[0] Blynk v0.3.6 on Arduino Uno
[0] Getting IP
[5302] IP:192.168.50.43
[5001] Connecting to blynk-cloud.com:8442
Ready Ping: (185ms.)
23.00
23.00
23.00
timer.setInterval(200000L, TempUpdate); // Update temp reading
void TempUpdate() {
int Temp = dht.readTemperature(); //Get a new reading from the temp sensor
int Hum = dht.readHumidity();
}
Aside from you not reading the instructions about formatting the code you post here (I fixed that for you) and not reading the recommended help documentation before asking questions Well… as stated, your void loop() is a big problem.
See Avoiding the Void in this document… along with all the rest