#include <SoftwareSerial.h>
#include <LiquidCrystal.h>
char SBUF0 = 0;
SoftwareSerial mySerial(10, 11); // RX, TX
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
mySerial.begin(1200);
lcd.begin(16, 2);
lcd.print("lcd");
// lcd.print(SBUF0);
}
void loop()
{
Ht9032_get();
Serial.print(SBUF0);
// lcd.setCursor(0, 1);
// print the number of seconds since reset:
//lcd.print(millis() / 1000);
}
void Ht9032_get()
{
while (mySerial.available() > 0)
{
//Serial.flush();
SBUF0 = Serial.read();
Serial.print((float)SBUF0);
lcd.print(SBUF0);
}
}
In my serial monitor, I obtain some symbols like "///////////////////////////////////////////////"
How do I convert into useful information.