float F;
boolean newData = false;
float Celsius;
float Result;
int choise;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("_______________*________________");
Serial.println("What convertion do you want? ");
Serial.println("1 - Celsius to Fahrenheit");
Serial.println("2 - Fahrenheit to Celcius");
Serial.println("_______________*________________");
while (Serial.available()==0);
choise = Serial.parseInt();
if (choise == 1) {
Serial.println("Enter Data in Celsius: ");
while (Serial.available()){
Celsius = Serial.parseFloat();
Serial.println(Celsius);
}
}
delay(10000000);
}