I need help!

Buenas tardes.

Necesito ayuda pues que el error que me sale al compilar el programa es este:

C:\Users\PAULA\Documents\Arduino\sketch_may29d\sketch_may29d.ino: In function ‘void loop()’:

sketch_may29d:34: error: ‘d’ was not declared in this scope

if (d==0){

^

sketch_may29d:36: error: expected ‘;’ before ‘d’

d++;

^

sketch_may29d:39: error: ‘du’ was not declared in this scope

if (du==0){

^

sketch_may29d:40: error: ‘keypad’ was not declared in this scope

char key = keypad.getKey();

^

sketch_may29d:42: error: ‘decena’ was not declared in this scope

decena=key;

^

sketch_may29d:48: error: expected primary-expression before ‘}’ token

}

^

C:\Users\PAULA\Documents\Arduino\sketch_may29d\sketch_may29d.ino:48:5: warning: return-statement with a value, in function returning ‘void’ [-fpermissive]

sketch_may29d:48: error: expected ‘;’ before ‘}’ token

sketch_may29d:49: error: ‘du’ was not declared in this scope

if ((du==1)&&(u==0)){

^

sketch_may29d:49: error: ‘u’ was not declared in this scope

if ((du==1)&&(u==0)){

^

sketch_may29d:51: error: expected ‘;’ before ‘u’

u++;

^

sketch_may29d:53: error: expected primary-expression before ‘}’ token

}

^

C:\Users\PAULA\Documents\Arduino\sketch_may29d\sketch_may29d.ino:53:3: warning: return-statement with a value, in function returning ‘void’ [-fpermissive]

sketch_may29d:53: error: expected ‘;’ before ‘}’ token

sketch_may29d:54: error: ‘ud’ was not declared in this scope

if (ud==0){

^

sketch_may29d:55: error: ‘keypad’ was not declared in this scope

char key = keypad.getKey();

^

sketch_may29d:57: error: ‘unidad’ was not declared in this scope

unidad=key;

^

sketch_may29d:63: error: expected primary-expression before ‘}’ token

}

^

C:\Users\PAULA\Documents\Arduino\sketch_may29d\sketch_may29d.ino:63:5: warning: return-statement with a value, in function returning ‘void’ [-fpermissive]

sketch_may29d:63: error: expected ‘;’ before ‘}’ token

sketch_may29d:64: error: ‘maxi’ was not declared in this scope

if (maxi=0){

^

sketch_may29d:65: error: ‘MaxT’ was not declared in this scope

MaxT=(decena*10)+unidad;

^

sketch_may29d:65: error: ‘decena’ was not declared in this scope

MaxT=(decena*10)+unidad;

^

sketch_may29d:65: error: ‘unidad’ was not declared in this scope

MaxT=(decena*10)+unidad;

^

sketch_may29d:78: error: ‘u’ was not declared in this scope

if (u<MaxT){

^

sketch_may29d:78: error: ‘MaxT’ was not declared in this scope

if (u<MaxT){

^

sketch_may29d:88: error: expected ‘}’ at end of input

}

^

exit status 1
‘d’ was not declared in this scope

Y aquí esta el programa

#include <Key.h>
#include <Keypad.h>
#include <DHT.h>
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);

const byte rows = 4;
const byte colums = 4;
char keys[rows][colums] = {
{ ‘1’,‘2’,‘3’, ‘A’ },
{ ‘4’,‘5’,‘6’, ‘B’ },
{ ‘7’,‘8’,‘9’, ‘C’ },
{ ‘#’,‘0’,’*’, ‘D’ }
};
const byte rowPins[rows] = { 11, 10, 9, 8 };
const byte colPins[colums] = { 7, 6, 5, 4 };
int unidad=0;
int decena=0;
int u=0;
int d=0;
int du=0;
int ud=0;
int maxi=0;
int MaxT=0;

void setup() {

Serial.begin(9600);
dht.begin();

}
void loop() {
if (d==0){
Serial.println(“Ingrese una decena”)
d++;
return;
}
if (du==0){
char key = keypad.getKey();
if (key){
decena=key;
decena=decena-48;
Serial.println (decena);
du++;
}
return
}
if ((du==1)&&(u==0)){
Serial.println(“Ingrese una unidad”)
u++;
return
}
if (ud==0){
char key = keypad.getKey();
if (key){
unidad=key;
unidad=unidad-48;
Serial.println (unidad);
ud++;
}
return
}
if (maxi=0){
MaxT=(decena*10)+unidad;
Serial.println (“La temperatura maxima estupulada es”);
Serial.println (MaxT);
maxi++;
}
delay(3000);

float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println(“Error”);
return;
}
if (u<MaxT){
float hic = dht.computeHeatIndex(t, h, false);
Serial.print(“Humedad: “);
Serial.print(h);
Serial.print(” %\t”);
Serial.print("Temperatura: “);
Serial.print(t);
Serial.print(” *C “);
Serial.print(hic);
Serial.print(” *C ");
}

Serial.println("Ingrese una decena")

Serial.println("Ingrese una decena");

Leo..

Necesitas leer esto

Lee las Normas del foro.
Luego ve a More (abajo a la derecha), click, luego Modify y estas en modo EDICION.
Primero este es un foro en Español. Aunque todos te entiendan “I need help” no es un título apropiado, ni aúnque dijera “Necesito ayuda”. Coloca un título que explique la naturaleza de tu problema.
Todo lo que pusiste son errores y código. Ambos se postean como si fueran código, asi que sigue las indicaciones que pongo a continuación
**Selecciona cada código/errores y click en </> arriba del emoticon **

Tags.jpg