I and Me

Use I when you are the subject of the sentence, the one who is doing something.

I ran for president.  I am hungry.

Use me when you are not the subject of the sentence.

The package is for Joe and me.  (The subject of the sentence is "the package.")

Come with me.  (The subject of the sentence is implied.  It is "you.")