Error: extended character ” is not valid in an identifier

#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>
#include <ESP8266HTTPClient.h>
 
// Set these to run example.
#define FIREBASE_HOST “gasd-118cb-default-rtdb.firebaseio.com”
#define FIREBASE_AUTH “DiazPV4zabvUea9nGAa5NKnzlEzYy6QUquUR7q23”
#define WIFI_SSID “Dialog 4G 83D” //provide ssid (wifi name)
#define WIFI_PASSWORD “244466666” //wifi password

// Calibrating the load cell
#include <Arduino.h>
#include "HX711.h"

// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 12;
const int LOADCELL_SCK_PIN = 13;

HX711 scale;

void setup() {
  Serial.begin(9600);
  // connect to wifi.
 WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
 Serial.print(“connecting”);
 while (WiFi.status() != WL_CONNECTED)
 {
        Serial.print(“.”);
        delay(500);
 }
        Serial.println();
        Serial.print(“connected: “);
         Serial.println(WiFi.localIP());
 
 Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
if(Firebase.failed())
 {
        Serial.print(Firebase.error());
 }
 else{
 
        Serial.print(“Firebase Connected”);
        Firebase.setString(“Senura/Value”,”0");
 }
  //loadcell
  scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}

void loop() {

  for(int i = 0; i <= 100; i++)
 { 
        Firebase.setInt(“/Senura/Value”,i);
        delay(1000);
 }

  if (scale.is_ready()) {
      Serial.print("read average: \t\t");
      Serial.println(scale.read_average(20));
  } 
  else {
    Serial.println("HX711 not found.");
  }
  delay(1000);
}

this is my code and it give me the "error: extended character ” is not valid in an identifier". anyone knows why this happens and how to fix this?Preformatted text

...wrong quotes. Repeat many times. You need these quotes: "
Not these:
Nor these:

(Welcome to Unicode / UTF-8).

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.