Modified By,
Technical Team, REES52
#define BLYNK_PRINT Serial
#include <SPI.h> // Library for SPI
#include <Ethernet.h> // Library for Ethernet
#include <BlynkSimpleEthernet.h> // Library for Blynk
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "52861cfcce7c48a097fb3cbb190c5fdc";
int LDR_Pin = A0; // Analog Pin for LDR
#define W5100_CS 10
#define SDCARD_CS 4
/* The setup() function is called when a sketch starts. It is used to initialize variables, pin modes, start using libraries, etc. This function will only run once, after each power up or reset of the Arduino board. */
void setup()
{
// Debug console
Serial.begin(9600); // Baud Rate
Serial.println("LDR Light Sensor "); // Print the Message
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Blynk.begin(auth);
// You can also specify server:
//Blynk.begin(auth, "blynk-cloud.com", 80);
//Blynk.begin(auth, IPAddress(192,168,1,100), 8080);
// For more options, see Boards_Ethernet/Arduino_Ethernet_Manual example
}
/* The loop() function executes the program repeatedly until Specified. */
void loop()
{
Serial.println(analogRead(LDR_Pin)); // Read the Values from Analog Pin
delay(3000); // Wait for 3000 ms
Blynk.run();
}