Hi I'm working with Arduino, achieves that my program will work but I want the serial communication of the ADC value and the temperature will not be displayed both in one fell swoop, would have some form of it can be sent separately packet. There is a kind of chain. regards
int a;
float b;
float c;
char val;
char val2;
void setup(){
Serial.begin(9600); //Configuración de puerto serie
}
void loop(){
a=analogRead(0);
b=((a*5.0)/1023)21.3;
c= (a5.0)/1023;
Serial.println(c);
Serial.print("\n Temperature ");
Serial.println(b);
Serial.print("\n ADC ");
if( Serial.available() )
{
val = Serial.read();
}
delay(100);
if( Serial.available() )
{
val2 = Serial.read();
}
delay(100);
}