added a ph sensor and some basic scheduling logic for ph