#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.print("Bluetooth Data:");
}
void loop() {
if (Serial.available() > 0) {
char data = Serial.read();
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Received: ");
lcd.setCursor(0, 1);
lcd.print(data);
}
}