I Constructions weather station and I have a problem with the print warnings for rain at the end of my Arduino itself adds two characters that are not in the program I use i2c display , sorry for my bad english
weather_station.ino (2.41 KB)
I Constructions weather station and I have a problem with the print warnings for rain at the end of my Arduino itself adds two characters that are not in the program I use i2c display , sorry for my bad english
weather_station.ino (2.41 KB)
Change the println's to print, and I think that'll sort it. (in here)
switch (range) {
case 0:
lcd.setCursor(0,3);
lcd.println("flood");
break;
case 1: // Sensor getting wet
lcd.setCursor(0,3);
lcd.println("Rain Warning");
break;
case 2: // Sensor dry - To shut this up delete the " Serial.println("Not Raining"); " below.
lcd.setCursor(0,3);
lcd.println("Not raining");
break;
}
delay(1); // delay between reads
I'll wager those bogus symbols are a linefeed sequence.
Do you have a 3.3V BMP180 and a 5V I2C LCD display on the same I2C bus ? how ?