tells the compiler to replace all occurrences of FORCE_SENSOR_PIN with 36
So, this line…
is actually being read as…
define an integer variable called 36 and make it equal to the value that is returned when you read the voltage on pin A0
The compiler doesn’t really like variables with names like 36 and there is no A0 pin on the ESP32.
and, when you do this…
You’re actually writing the value 36 to datasteram V1, not the reading that has come from an analog pin.
In addition, these thee lines of code…
need to be the very first lines of your sketch, you need these two lines of code in your sketch…
#include <WiFi.h>
#include <WiFiClient.h>
this line of code…
should read…
char auth[] = BLYNK_AUTH_TOKEN;
you shouldn’t have Blynk.virtualWrites in your void loop, and you shouldn’t use delay() commands with Blynk.Instead you should use a BlynkTimer to call a function which reads your analog pin and writes the result to Blynk.
you should read this for more info…
If you want to take a reading from GPIO36 and send it to Blynk, you could do this…
int analog_reading = analogRead(36);
Blynk.virtualWrite(V1, analog_reading);