lcd_key = read_LCD_buttons();
float temp = dht.readTemperature();
delay(1000);
// lcd.setCursor(0,0);
if(temp < 0) {
lcd.print(temp);
}
if(temp >= 0.00 || temp <= 5.00) {
lcd.setCursor(0,6);
lcd.print(temp);
delay(100);
}
Here I got simple code about reading temperature from DHT sensor and lcd but when I raise or lower the DHT's temperature the lcd's cursor always printing my data from 0,0.
I want that when the temperature between 0-5 celcius it shall write data on 0,6 in lcd screen but this code not working.
Thank you for answers.
setcutsor()
command