Hi everone I want to connect FSR sensor with Blynk uisng ESP32
Can anyone help to find the problem:
#include <BlynkSimpleEsp32.h>
#define BLYNK_TEMPLATE_ID "TMPLbE4hZBnO"
#define BLYNK_DEVICE_NAME "first project"
#define BLYNK_AUTH_TOKEN "H46NFGb02mEV9YAz_ExbqBGvhf0rSVR3"
#define FORCE_SENSOR_PIN 36 // ESP32 pin GIOP36 (ADC0): the FSR and 10K pulldown are connected to A0
char auth[]= "H46NFGb02mEV9YAz_ExbqBGvhf0rSVR3";
char ssid[]= "Success";
char pass[]= "1A2B3C4D";
void setup() {
Blynk.begin(auth, ssid, pass);
}
void loop() {
// Read the FSR sensor's output
int FORCE_SENSOR_PIN = analogRead(A0);
// Send the FSR output to the Blynk app
Blynk.virtualWrite(V1, FORCE_SENSOR_PIN);
// Wait for a short time before reading the sensor again
delay(1000);
}
It shows an Compilation error: "expected unqualified-id before numeric constant"