create new command to record pot angle when button pressed