What modification can I make to capture the humidity and temperature of my serial port to insert a variable inside the variable that is printed on the serial port as% u0000 and temperature% t00.00.
Generally with unique characters, example 'O', I use part of the function below, now what I'm not getting is that this buffer only filters the values starting at% t or% u so I save in a variable and print on my LCD.
void recebeir(){
char valorlido = Serial.read();
if (valorlido == 'O'){ //liga ou desliga a tv
{
for (int i = 0; i < 1; i++) //Envia um flash de led com 3 comandos
irsend.sendRaw(S_pwr,68,38); //código clonado
delay(52);
}
Serial.println("Liguei ou Desliguei a TV");
}
Thank you!