Device developed for measuring pH of tissue during surgery