I need help with the BlynkTimer.h

i need help i am trying to make a temperature sensor thing i am using a LM35 sensor and a nodemcu and i have this problem first the original code use the simpletimer library and i found in another forum that the simpletimer wont work with blynk so i change it to BlynkTimer and it show me a error
this error


sketch_feb18a:7:24: fatal error: BlynkTimer.h: No such file or directory

 #include <BlynkTimer.h>

                        ^

compilation terminated.

exit status 1

BlynkTimer.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

here is my code

#include <ESP8266WiFi.h>//Install these library
#include <BlynkSimpleEsp8266.h>
#include <BlynkTimer.h>

#define BLYNK_PRINT Serial

float vref = 3.3;
float resolution = vref / 1023.0;
float temperature;

char auth[] = "*QjxX";//yourauthtoken
char ssid[] = "helloworld";//name of your wifi
char pass[] = "helloworld";//password of wifi

BlynkTimer timer;

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(2000, sendUptime);
}

void sendUptime()
{
  float temperature = analogRead(

1. List item

A0);//lm35 is connected to pin A0 on NodeMcu
  temperature = (temperature * resolution);
  temperature = temperature * 100.0;
  Serial.print("LM35 temperature: ");//serial print the value
  Serial.println(temperature);
  Blynk.virtualWrite(V0, temperature);//send the value to blynk application
}

void loop()
{
  Blynk.run();
}

im sorry if it a simple fix im new to blynk :smile:

Remove this line, it’s not required.

You also appear to have some garbage in the middle of your code…

Pete.

Oh thank i think the garbage was from the start text :sweat_smile:

Thank im going to try it tomorrow cos i need to sleep :smile: