Arduino average function formula. Open up the Arduino IDE.