A9G Code Assist. Please

I'm final year and i wanted to do project and i needed assistant to help me get code for solar powered irrigation system using Arduino and GSM

Pardon my ignorance, but I have to ask. Around here, there's talk of retiring 3G services. Is 2G not more antiquated, and if so, will it not also be deprecated soon? Or is it a different animal, with lots of dedicated industrial uses that won't be tampered with?
Guess Google is in my future.

Never mind. In Canada, both 2G and 3G are on limited life support.

Hello. I tried running all the code, but for some reason my a9g module doesnt return ok. When i ran an empty file and used AT command at baud rate of a9g, i was able to use it. But for some reason the codes in the program doesnt work. I'm using serial pin tx and rx of arduino uno for connection