Credit check - How can I recognize an amount of credit on my SIM card?

Go to the terminal and use this AT command to get an amount AT&gxx=xtd*101# and then after # you should use ; or without ; it depends on module. xx=is number of GSM module 00 means the first module.