moved pH pin configuration into main