3.หาไฟล์ Library ที่ดาวน์โหลดมาโดยการไปที่เมนู Sketch->Include Library->Add ZIP Library
4.ไฟล์ที่นำเข้าจะไปอยู่ที่เมนู File->Examples->Examples form Custom libraries 5.เปิดตัวอย่างขึ้นมาและทำการกด Upload เป็นอันเส็จเรียบร้อย
6.ส่วนตัว "MAX9812" ใส่ Code ตามนี้และทำการกด Upload เป็นอันเสร็จเรียบร้อย // selecting the analog input pinconstint inputPin = A0; // size of the windowconstint inputWindow = 100; // placeholder for a single measurementunsignedint inputSample; voidsetup(){ // initializing the analog input pinMode(inputPin, INPUT); // initializing the serial communication Serial.begin(9600); } voidloop(){ // two variables for minimum and maximum values in windowunsignedint inputMax = 0; unsignedint inputMin = 1024; // loop for the windowfor (unsignedint i = 0; i < inputWindow; i++) { // read in a single value inputSample = analogRead(inputPin); // get the minimum and maximum value inputMin = min(inputMin, inputSample); inputMax = max(inputMax, inputSample); } // send the values on serial Serial.print("Min: "); Serial.print(inputMin); Serial.print(" Max: "); Serial.print(inputMax); Serial.print(" Diff: "); Serial.print(inputMax - inputMin); Serial.println(); }