SEN0161-V2 pH sensor calibration method

Hello, I have tested SEN0161-V2 and I can calibrate it via serial monitor. The library that I use is the one from dfRobot. Then if I wanna do calibratio via push button, should I change the library or any other things I need to do?