Eventhough the sketch is uploaded, and the BLE Nano connected to my phone, as soon as I insert a letter (either t or h) the connection is lost. I've tried as suggested by Fjodor to insert the line bleserial.begin(9600); but still it doesn't work. Actually, I removed the line because a TA suggested me doing so when having the same problem. What should I do?
Check your code with my example below. Especially the parts in red must be there:
At the very bottom of the loop(), there should also be this piece:
And finally, in the loop where it reads the temperature, it should look like (piece in red):