// Declaring a global variabl for sensor data
// This function creates the timer object. It's part of Blynk library
// This function describes what will happen with each timer tick
// e.g. writing sensor value to datastream V5
Blynk.virtualWrite(V5, sensorVal);
//Connecting to Blynk Cloud
Blynk.begin(auth, ssid, pass);
// Setting interval to send data to Blynk Cloud to 1000ms.
// It means that data will be sent every second
timer.setInterval(1000L, myTimer);
// Reading sensor from hardware analog pin A0
sensorVal = analogRead(A0);