Hello!
How I can remove dot and two zero-/s (.00). I want use only whole values. Maybe I need to use other DHT library?
My code what I wrote;
#include <dht.h>
#define dht_apin A0
dht DHT;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
//lcd.print("Hello, world!");
}
void loop()
{
DHT.read11(dht_apin);
lcd.print("T=");
lcd.print(DHT.temperature);
lcd.print("C");
lcd.setCursor(0,1);
lcd.print("H=");
lcd.print(DHT.humidity);
lcd.print("%");
delay(5000);
lcd.clear();
}
Used libraries in attachments.
Thank you!