CNN: Low-Cost High-Accuracy pH Detection using Machine Learning