#define BANDGAPREF 14 // special indicator that we want to measure the bandgap

/* * setup() - this function runs once when you turn your Arduino on * We initialize the serial connection with the computer */void setup(){ Serial.begin(9600); //Start the serial connection with the computer //to view the result open the serial monitor delay(500);}

void loop() // run over and over again{ // get voltage reading from the secret internal 1.05V reference int refReading = analogRead(BANDGAPREF); Serial.println(refReading);