The judge handling your case will determine your final sentence. This happens immediately after your guilty plea, or at a future sentencing hearing, depending on the circumstances of your case.
While the judge holds the final authority to determine your sentence, their decision generally depends on the level of your conviction. For example, a misdemeanor holds a maximum penalty of 90 days in jail and a $1,000 fine, while a gross misdemeanor is punishable by a maximum penalty of 365 days in jail and a $3,000 fine. Those are maximum penalties. Your sentence may be anything up to that amount.
Each sentence may include a unique set of requirements. For example, you may be required to undergo a chemical dependency assessment, anger management classes, or to remain law abiding. Your sentence may also include things like fines, community service, or restitution. If you fail to meet these requirements, the judge can give you a more severe set of consequences for your conviction.
Look at your sentence carefully and make sure you understand everything you are required to do. If there is something you do not understand, ask your attorney, probation officer, or the court for clarification.