Member #152271

Member Since: September 21, 2010

Country: United States

  • Product SEN-10972 | about 2 years ago

    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 :(