GSM TC35 Simens Arduino

Hello,
I want to control remotely the heating of a house in using SMS message
The problem is that my code have some bug, in particular when the Arduino send 3 SMS with only one SMS command by the client : the GSM Module send the first SMS but not the next SMS. And also the target heating temperature is write in EEPROM but after reboot the value is always 0.
(source code in attachment)
thank in advance

code.cpp (36.5 KB)