1. When you enter this string h81.0t29.0 in the InputBox of the Serial Monitor (Fig-1) with Line ending tab selected at Newline (or Carriage return) option and click on the Send button, the following frames (one after another) arrive at the RX-pin of the NodeMCU/ESP8266. Now, it is obvious that the InputBox of the Serial Monitor can be used in lieu of a remotely located UART device for program development, debugging, and troubleshooting. However, it is recommended to connect user UART device with a software UART Port (SUAR) of the ESP as the hardware UART Port (UART) remains engaged with IDE/Serial Monitor for sketch uploading/debugging.
Given string : h81.0t29.0 with implied Newline character (\n) to be added by Serial Monitor
Frames : 0x68, 0x38, 0x31, 0x2E, 0x30, 0x79, 0x32, 0x39, 0x2E, 0x30, 0x0A (or 0x0D) (consult Fig-2)

Figure-1: Serial Monitor of Arduino IDE
Figure-2: ASCII Table
2. Now, write code for your ESP to check that frames are coming from Serial Monitor; catch them one-by-one and present them one-by-one in the OutputBox of the Serial Monitor (Fig-3).
Coes:
void setup()
{
Serial.begin(115200);
Serial.print(" ");
}
void loop()
{
byte n = Serial.available();
if (n !=0)
{
char x = Serial.read();
Serial.print(x);
}
}
Screen shot:

3. Now, try to add codes with the sketch of Step-2 to save the received characters into a char type array (char myData[]) and the reception/storage will be finished once you recognize the Newline character. The following function is suitable for this job:
byte n = Serial.readBytesUntil('\n', myData, 10);
4. You have all the characters in an array in Step-3, which can be processed to retrieve your humidity and temperature data.
Hints: To retrieve humidity data
Place ASCII code of '0' (0x30) at location myData[0].
Place null character ('\0') at the place of the character t of myData[].
Use atof() function to get the float value of humidity in a float type variable.
Screen shot:



