datalogging without computer

i see.. :slight_smile:

i use a AC/DC 5V 3A.

the wiring, are:

A0 = Q135

7 = DHT11

10 = CS
11 = MOSI
12 = MISO
13 = SCK

all connected to 5V/GND

didnt notice the missing part of the code in the middle.. :slight_smile: here it is:

int co2now[10]; //int array for co2 readings
int co2raw = 0; //int for raw value of co2
int co2comp = 0; //int for compensated co2
int co2ppm = 0; //int for calculated ppm
int zzz = 0; //int for averaging
int grafX = 0; //int for x value of graph

for (int x = 0;x<10;x++){ //samplpe co2 10x over 2 seconds
co2now[x"]=analogRead(A0);
delay(1000);
}

for (int x = 0;x<10;x++){ //add samples together
zzz=zzz + co2now[x"];

}
co2raw = zzz/10; //divide samples by 10
co2comp = co2raw - co2Zero; //get compensated value
co2ppm = map(co2comp,0,1023,400,5000); //map value for atmospheric levels

sd_file.print(hours);
sd_file.print(":");
sd_file.print(minutes);
sd_file.print(":");
sd_file.print(seconds);
sd_file.print(",");
sd_file.print(hum);
sd_file.print(",");
sd_file.print(temp);
sd_file.print(",");
sd_file.print(co2ppm, DEC);
sd_file.print(",");
sd_file.println(heat_index);