Hi,
Happy Holidays to all of you !
I am a newbie....so forgive my ignorance.
I am using the HIH-6130 sensor with this library on a leonardo and the values come on serial monitor perfectly.
I want to get the values on my 16x2 Character LCD which has the common HD44780 parallel interface.
My LCD is this one.
The problem is that I am getting garbage characters on my LCD. (See attachment)
If I commented all the code for the sensor I can get the test value lcd.print(1.2); perfectly on my LCD
Here is the code I am using any help will be very appreciated
#include <Wire.h>
#include <HIH6130.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// Define the address used by the HIH6130
byte address = 0x27;
HIH6130 rht(address);
void setup(){
lcd.begin(16,2);
Serial.begin(9600);
rht.begin();
Serial.println("RH (%)\tT (C)");
}
void loop(){
// Read data
rht.readRHT();
// Print the data
Serial.print(rht.humidity); Serial.print("\t");
Serial.println(rht.temperature);
// The following line is just a test to see the output
lcd.print(1.2);
lcd.clear();
delay(2000);
}
Regards
Manos