How to type into a number to Arduino then excite the code?

Hello,

I am working with temperature control. I just want to use Serial communication to input the working temperature and then assign the value to a variable.

I put the a loop in the void setup

while (Serial.avaiable == 0) {} Serial.println ("Input the working temeprature")

how to make this look just work one time? Thanks.

while (Serial.available() == 0)

Try calling the function (and spelling it correctly)

Serial input basics by Robin2 may be of interest.