Can you help me? No data in app…
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <BreathDetector.h>
BreathDetector MyDetector(A0);
int x, x0, a;
float out_relax, in_normal;
int error;
#define analogPin A0
BlynkTimer timer;
char auth[] = "HQS03enltJfi4hKlm6pmIrVqI_bwOzXa";
char ssid[] = "YA";
char pass[] = "qwerty123321";
void Send()
{
a = analogRead(A0);
for (int k = 0; k < 5; ++k){
x = map( analogRead(A0), 0, 1023, -100, 100);
// Serial.println(x0 - x);
a = x0 - x;
}
Serial.println(a);
Blynk.virtualWrite(V1,a);
}
void setup()
{
pinMode(analogPin, INPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000,Send);
}
//void sendTemps()
//{for (int k = 0; k < 5; ++k){
//
//
// x = map( analogRead(A0), 0, 1023, -100, 100);
//// Serial.println(x0 - x);
// a = x0 - x;
//sensors.requestTemperatures();
//float dx = sensors.getTempCByIndex(0);
//float dx1 = sensors.getTempCByIndex(1);
//Serial.println(temp);
//Blynk.virtualWrite(A0, dh);
////Blynk.virtualWrite(V2, dx1);
//}
void loop() {
Blynk.run();
Send();
timer.run();
}```