#define ANALOG_PIN 0
float average = 0.0;
void setup() {
Serial.begin(9600);
}
void loop() {
for(uint8_t i = 0; i <= 19; i++) {
average = average + analogRead(0);
delay(1);
}
average = average / 20.0;
Serial.println(average);
average = 0.0;
}