HI guys, i have one problem with this code because i can't print in the lcd, i need some of help. and i have this code and i want print the value of sensor.
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11 , 12);
void setup() {
Serial.begin (96000); // puerto serie abierta, establecer la velocidad de transmisión de 9600 bps
}
void loop() {
Lcd_sensor();
}
void Lcd_sensor(){
int val;
val = analogRead (0); // conectar el sensor de micro a analógica 0
Serial.println (val, DEC); // imprime el valor de sonido de serie de retardo (100);
lcd.begin(2, 4);
lcd.setCursor(1,1);
lcd.write("Db");
delay(1000);
}