Hi, I am using the Particle Photon and the particle web IDE,
Is this any better
Simeon
int pressuresensorPin = A4;
float pressureSensorPin;
float waterLevel;
#define BLYNK_PRINT Serial
#include <blynk.h>
char auth[] = "Auth Code";
BlynkTimer timer;
void myTimerEvent()
{
Blynk.virtualWrite(V1, millis() / 1000);
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth);
timer.setInterval(1000L, myTimerEvent);
}
BLYNK_WRITE(V1) {
waterLevel = (pressureSensorPin / 25.0) - 20.0;
Blynk.virtualWrite(V1, waterLevel);
}
void loop()
{
Blynk.run();
timer.run();
}