Micro sd card

Hi, I have this code:

#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);

#include <SD.h>
const int chipSelect = 10;

int estadoActual1 = 0;
int estadoActual2 = 0;
int estadoUltimo = 0;
int contador = 0;
float raioEmCm = 30.0;
float pi = 3.1416;
float perimetroRoda = 2 * pi * (raioEmCm / 100); //Calcula Perimetro em metros
float distPercorrida = 0;
float distKM = 0;
int tempo1 = 0;
int tempo2 = 0;
int tempo3 = 0;
float tempo4 = 0;
float velocidade = 0;

void setup(){
lcd.print(“Bem-Vindo!”);
delay(10000);
lcd.clear();
pinMode(4, OUTPUT);
pinMode(3, INPUT);
Serial.begin(9600);
lcd.begin(16, 2);
}

Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect.
}
Serial.print(“Initializing SD card…”);
pinMode(10, OUTPUT);

//iniot SD card
if (!SD.begin(chipSelect))
{
Serial.println(“Card failed, or not present”);
return;
}
Serial.println(“card initialized.”);
}

void loop() {
estadoActual1 = digitalRead(3);
delay(5);
estadoActual2 = digitalRead(3);

if (estadoActual1 == estadoActual2) {
if (estadoActual1 != estadoUltimo) {
if (estadoActual1 == HIGH) {
contador = contador + 1;
Serial.print (“Voltas”);
Serial.println(contador);
distancia();
VEL();
}
}
}
estadoUltimo = estadoActual1;

if (contador % 2 == 0 ) {
digitalWrite(4, LOW);
}
else {
digitalWrite(4, HIGH);
}
definicoesLCD();
}

// read three sensors and append to the string
for (int analogPin = 0; analogPin < 3; analogPin++)
{
int sensor = analogRead(analogPin);
dataString += String(sensor);
if (analogPin < 2)
{
dataString + = “,”;
}
// open the file.
File dataFile = SD.open(“data.txt”, FILE_WRITE);

// if the file is available, write to it:
if (dataFile)
{
dataFile.println(dataString);
dataFile.close();
}
// if the file isn’t open
else
{
Serial.println(“error opening data.txt”);
}

void distancia() {
distPercorrida = perimetroRoda * contador;
distKM = distPercorrida / 1000;
if (distPercorrida <= 999) {
Serial.print("Distancia Percorrida em m= ");
Serial.println(distPercorrida);
}
else {
Serial.print("Distancia Percorrida em Km= ");
Serial.println(distKM);
}
}

void VEL() {
if (contador % 2 == 0 ) {
tempo1 = millis();
}
else {
tempo2 = millis();
}
tempo3 = abs(tempo2 - tempo1);
tempo4 = (((tempo3 / 1000.0) / 60) / 60);
velocidade = ((perimetroRoda / 1000) / tempo4);
Serial.print("velocidade= ");
Serial.println(velocidade);
}

void definicoesLCD() {
lcd.clear();
lcd.write(“V=”);
lcd.print(velocidade);
lcd.write(“Km/h”);
lcd.setCursor(0, 1);
if (distPercorrida <= 999) {
lcd.write(“D=”);
lcd.print(distPercorrida);

lcd.write(“m”);
}
else {
lcd.write(“D=”);
lcd.print(distKM);
lcd.write(“Km”);
}
return;
}

And give me this, after check:

Arduino: 1.6.12 (Windows 10), Placa:“Arduino/Genuino Uno”

codigo:36: error: stray ‘\342’ in program

Serial.print(“Initializing SD card…�);

^

codigo:36: error: stray ‘\200’ in program

codigo:36: error: stray ‘\234’ in program

codigo:36: error: stray ‘\342’ in program

codigo:36: error: stray ‘\200’ in program

codigo:36: error: stray ‘\246’ in program

codigo:36: error: stray ‘\342’ in program

codigo:36: error: stray ‘\200’ in program

codigo:36: error: stray ‘\235’ in program

codigo:42: error: stray ‘\342’ in program

Serial.println(“Card failed, or not present�);

^

codigo:42: error: stray ‘\200’ in program

codigo:42: error: stray ‘\234’ in program

codigo:42: error: stray ‘\342’ in program

codigo:42: error: stray ‘\200’ in program

codigo:42: error: stray ‘\235’ in program

codigo:45: error: stray ‘\342’ in program

Serial.println(“card initialized.�);

^

codigo:45: error: stray ‘\200’ in program

codigo:45: error: stray ‘\234’ in program

codigo:45: error: stray ‘\342’ in program

codigo:45: error: stray ‘\200’ in program

codigo:45: error: stray ‘\235’ in program

codigo:82: error: stray ‘\342’ in program

dataString + = “,�;

^

codigo:82: error: stray ‘\200’ in program

codigo:82: error: stray ‘\234’ in program

codigo:82: error: stray ‘\342’ in program

codigo:82: error: stray ‘\200’ in program

codigo:82: error: stray ‘\235’ in program

codigo:85: error: stray ‘\342’ in program

File dataFile = SD.open(“data.txt�, FILE_WRITE);

^

codigo:85: error: stray ‘\200’ in program

codigo:85: error: stray ‘\234’ in program

codigo:85: error: stray ‘\342’ in program

codigo:85: error: stray ‘\200’ in program

codigo:85: error: stray ‘\235’ in program

codigo:96: error: stray ‘\342’ in program

Serial.println(“error opening data.txt�);

^

codigo:96: error: stray ‘\200’ in program

codigo:96: error: stray ‘\234’ in program

codigo:96: error: stray ‘\342’ in program

codigo:96: error: stray ‘\200’ in program

codigo:96: error: stray ‘\235’ in program

codigo:32: error: ‘Serial’ does not name a type

Serial.begin(9600);

^

codigo:33: error: expected unqualified-id before ‘while’

while (!Serial) {

^

codigo:36: error: ‘Serial’ does not name a type

Serial.print(“Initializing SD card…�);

^

codigo:37: error: expected constructor, destructor, or type conversion before ‘(’ token

pinMode(10, OUTPUT);

^

codigo:40: error: expected unqualified-id before ‘if’

if (!SD.begin(chipSelect))

^

codigo:45: error: ‘Serial’ does not name a type

Serial.println(“card initialized.�);

^

codigo:46: error: expected declaration before ‘}’ token

}

exit status 1
stray ‘\342’ in program

please someone help me!

De onde tiraste esse código?

Fizeste copy/paste? Se fizeste copy/paste esse pode ter sido o problema.
Abre o Notepad normal do Windows, faz copy do site.
Faz paste no Notepad do Windows.

Selecciona tudo do Notepad do Windows.

Cola num sketch vazio na IDE do Arduino.

Tenta compilar.