look my picture?
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(2, 3); // RX, TX
#define BLYNK_PRINT SwSerial
#include <BlynkSimpleSerial.h>
#include <SimpleTimer.h>
SimpleTimer timer;
int solartrackerr = A4;
char auth[] = "94c55609544c48c7af09804704d48094";
int temp1,value,volt,luxs;
int ldrrd = A3;
float volts;
void readSolarCell()
{
float solartracker = analogRead(solartrackerr);
float lux = analogRead(ldrrd);
Blynk.virtualWrite(V20, volts);
Blynk.virtualWrite(V7, luxs);
BLYNK_LOG("myBMP180 %8.1f %8.1f", solartracker);
}
void setup()
{
Serial.begin(9600);
timer.setInterval(1000, readSolarCell);
timer.setInterval(1000L, sendUptime);
Blynk.begin(auth, IPAddress(192,168,1,3), 8831);
pinMode(solartrackerr, INPUT);
pinMode(ldrrd, INPUT);
}
void sendUptime()
{
Blynk.virtualWrite(V22, millis() /1000);
}
void loop() {
temp1=analogRead(solartrackerr);
volts= (temp1/511.5)*5;
delay(10);
value=analogRead(ldrrd);
volt=(value/1023)*5;
luxs=((2500/volt)-500)/3.3;
delay(10);
Blynk.run();
timer.run();
}
why?
please learn me?