sht 75 SENSIRION min and max by user

hi all.

I use this sensor from Sensirion. Working library there > Arduino Playground - HomePage

Working code is there >

/*

  • Query a SHT10 temperature and humidity sensor
  • A simple example that queries the sensor every 5 seconds
  • and communicates the result over a serial connection.
  • Error handling is omitted in this example.
    */

#include <Sensirion.h>

const uint8_t dataPin = 2;
const uint8_t clockPin = 3;

float temperature;
float humidity;
float dewpoint;

Sensirion tempSensor = Sensirion(dataPin, clockPin);

void setup()
{
Serial.begin(9600);
}

void loop()
{
tempSensor.measure(&temperature, &humidity, &dewpoint);

Serial.print("Temperature: ");
Serial.print(temperature);
Serial.print(" C, Humidity: ");
Serial.print(humidity);
Serial.print(" %, Dewpoint: ");
Serial.print(dewpoint);
Serial.println(" C");

delay(5000);
}

now i want to create a menu to change min and max values and setpoint by user menu. my lcd is 16x2

#include <LiquidCrystal.h>

LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

with buttons

(deleted)

spycatcher2k:
OK - do it!

I see no question.

My question - problem is the menus and programming buttons to edit temp values. .

hackertom:
My question - problem is the menus and programming buttons to edit temp values. .

Right , so why is it a problem ?

First assign a button to be scanned and when pressed it opens a "menu" so you write to the lcd
'temperature is "33.6" '

Then you check for the up or down key being pressed and increment or decrement your value accordingly.

Those lcd shields use an Analogue ladder for its switches, and they come with a demo sketch which if you look at shows you how to sense the key being pressed.

Here's a thread that may actually help. Member jurs came up with a way of allowing user to dial in a value using the up/down and left/right buttons which may get you started.

I incoroporated his code here, where I dialled in the actual length of a pendulum.