Gsm sim900 and arduino

Hi,
I am using gsm sim900, if i execute the sms example code it sends and receive sms, but if i execute my project code it gives me

sim900 doesn’t answer. Chech power and serial lins in GSM.cpp
Sratus: idle

Please help me