Patient was instructed on Hyperglycemia. High blood sugar develops when there is too little insulin or when the body fails to respond properly to the insulin in the blood. High blood sugar emergencies often develop because of some underlying condition that may not be obvious, such as a heart attack, infection, or surgery.