×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Member #152271

Member Since: September 21, 2010

Country: United States

  • If you guys want to display the reading onto an LCD, add the following code to the Arduino example given above:

    include

    LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

    void setup(){ lcd.begin(20,4); // columns, rows. use 20,4 for a 20x4 LCD, etc. lcd.clear(); // start with a blank screen lcd.setCursor(0,0); lcd.print(“pH Sensor:”); } void loop() { // place this code under Serial.print(sensorstring); lcd.setCursor(11,0); lcd.print(sensorstring); delay(1000);

      {
       myserial.print("R");                           //will return pH reading
       myserial.print('\r');
       }
    

    }

    Good luck :)

No public wish lists :(